A market order is an instruction to trade immediately at the best available price in the market.
A market order is an instruction to trade immediately at the best available price in the market. In market microstructure terms, it is the order type used when execution certainty is prioritized over price control.
The core mechanism is simple. A market order removes liquidity from the order book by matching against resting limit orders at the best available bid or ask, and then at deeper price levels if the available size at the top of book is not enough to complete the trade. Because it crosses the spread, the trader accepts the current quoted prices rather than setting a limit price.
The spread is the difference between the best bid and the best ask. When a trader submits a market buy, the order executes against the ask side. When a trader submits a market sell, the order executes against the bid side. Relative to the midpoint between bid and ask, this means the trader gives up the spread, or at minimum half the spread on entry, as the cost of obtaining immediate execution. If the order is large enough to consume multiple price levels, the realized execution price can move beyond the top of book as the order walks the book.
This is why a market order is commonly described as paying for certainty. The certainty is about execution taking place promptly if there is available liquidity. The tradeoff is that the final execution price is not fixed in advance and may differ from the last traded price, the midpoint, or the best quoted price visible before submission.
For quantitative traders, the practical distinction between market and limit orders is therefore a distinction between immediacy and price discretion. A market order seeks immediate completion by accepting available liquidity. A limit order posts or targets a specified price and may not execute if the market does not trade there.
Covered in depth in the Cross-venue market data & signals pillar hub.