Exchange ratio determination in a market equilibrium