The exchange rate in a model of pricing-to-market