2

Say that I observe the following market (a simplified limit order book with only limit and market orders):

  Bid  | Price  |  Ask  
       | 100.75 |   10
       | 100.50 |   40
    20 |  99.40 |
    30 |  99.30 |

What would happen if a market order to buy a volume of 90 would arrive and how would it be handled by the exchange/market matching algorithm?

Logically, we have the option that

  • the market order gets rejected right away
  • the market order gets filled as much as possible (40 shares @ 100.50, 10 shares @ 100.75)

if the second option is handled, what happens to the remaining volume of 40?

  • it gets thrown away (i.e., nothing additional happens)
  • it gets converted to a limit order at the last best price, i.e., a new limit order on the bid side for a price of 100.75 and a volume of 40 (seems a bit unlikely but logically possible...)

I am aware that this might be a bit too simplistic (i.e., only one exchange, only two types of orders etc), if you have an answer that only applies with additional assumptions, do please answer and state the additions that you have made.

Note

This question is related but not equal to this and this question, but while the first one addresses order matching in general, the second one only covers a total empty orderbook (this is somewhat related to the second option). To my understanding neither question specifically asks for overflowing market orders.

David
  • 123
  • 4

2 Answers2

1

This depends on the exchange and the type of order

A Immediate or cancel will get filled or cancelled. A GTC will get filled as much as possible and remain at top as market. So if someone puts a ask of 200 it would match.

Market order are only recommend for Highly liquid stock.

Dheer
  • 57,348
  • 18
  • 89
  • 170
0

The market order will get filled as far as possible by matching with the limit orders (so second option) and then the remaining unfulfillable order for 40 shares should get cancelled.

Exchanges should treat market orders as immediate or cancel orders, as the name says this means that a market order has to find a match immediately or gets cancelled, partial matching, like this case, leading to the unfulfilled portion getting cancelled.

I suppose converting the remaining portion to a limit order would be possible but it would mean the broker/exchange (who would even set that?) changing a trader's order which seems like a good way to anger them. That said, the absolute last thing you would want would be to have an outstanding market order, it would present a golden opportunity for an unscrupulous trader to engage in some price gouging.

Koen vd H
  • 741
  • 5
  • 15