How is an exchange price determined?

An exchange price is determined by the amount sold, and the amount bought.