Quote from LoveOfProfit:
The seller has already committed that selling the stock at price $10 is acceptable to him. The buyer commits he'll buy at anything up to $10.5, but the lower the better. Hence the order fills by buying the stock at the price of $10. Ok that didn't explain it as I intended.
Go back to your common supply and demand curves from economics. If a supplier is willing to sell good X for $10, and good X is worth $10.5 to you, you'll certainly buy it for $10. There is nothing in place that would cause you to pay your maximum price for the good if you can buy it for cheaper.
Sorry I didn't do economics... that may explain why I'm having trouble getting my head around this.
I understand that taking either price as the price of the trade is OK with both parties - they're both willing to trade 10 and 10.5.
The confusion is that as I understand it, markets use a price/time priority so as to reward earlier orders at the same price. So using that logic if markets are setup to reward earlier orders, why does the trade occur at a price that favours the newer order?
Sorry if i'm being simple, I just can't see a good explanation.