4

Under price/Time priority order matching, market orders get priority over limit orders. How is starvation of limit orders prevented? By starvation, I am referring to the case where limit orders don't get a chance to be executed because there is always a market order available to be executed.

Can the priority of queued up limit orders be increased after some time?

Edit: Adding sources to backup my claim that market orders are executed before limit orders under price/time priority.

http://www.six-swiss-exchange.com/knowhow/exchange/trading/matching_en.html http://www.eurexchange.com/exchange-en/trading/market-model/matching-principles

1 Answers1

2

Market orders do not get priority over limit orders. Time is the only factor that matters in price/time order matching when the order price is the same.

For example, suppose the current best available offer for AAPL is $100.01 and the best available bid is $100.00. Now a limit buy for $100.01 and a market buy arrive at around the same instant. The matching engine can only receive one order at a time, no matter how close together they arrive.

Let's say that by chance the limit buy arrives first. The engine will check if there's a matching sell at $100.01 and indeed there is and a trade occurs. This all happens in an instant before the matching engine ever sees the market buy. Then it moves on to the market buy and processes it accordingly.

On the other hand, let's say that by chance the market buy arrives first. The engine will match it with the best available sell (at $100.01) and a trade occurs. This all happens in an instant before the matching engine ever sees the limit buy. Then it moves on to the limit buy and processes it accordingly.

So there's never a comparison between the two orders or their "priorities" because they never exist in the system at the same time. The first one to arrive is processed first; the second one to arrive is processed second.

dg99
  • 6,056
  • 27
  • 33