I know how the process of changing BTC price ​​occur, but I curious as to what gave the  initial value to BTCand whether the price of another cryptocurrency refers to the BTC?
How would I replicate this process using an API or any algorithm?