Module I·Article IV·~4 min read
Order Book and the Pricing Mechanism
Structure of Financial Markets and Infrastructure
Turn this article into a podcast
Pick voices, format, length — AI generates the audio
Order Book and Price Formation
The order book is the central pricing mechanism at modern exchanges. Understanding the structure of the order book, order types, and the matching process is necessary for effective participation in exchange trading and for the development of trading strategies.
Structure of the Order Book
The order book is an electronic register of all active buy and sell orders for a specific instrument. The order book is typically visualized as two columns: buy orders (bid side) and sell orders (ask/offer side).
The bid side contains buyers’ orders, sorted by price from highest to lowest. The best bid (highest bid) is the maximum price someone is willing to pay for the asset at the current moment. The ask side contains sellers’ orders, sorted from lowest price to highest. The best ask (lowest ask) is the minimum price at which someone is willing to sell.
The bid-ask spread is the difference between the best ask and the best bid. The spread is an indicator of liquidity: a narrow spread indicates high liquidity, a wide spread — low liquidity. The spread also represents the transaction cost for a participant making an immediate trade.
Order Types
A market order is an order for immediate execution at the best available price. A market order to buy will execute at the current best ask, and to sell — at the best bid. Its advantage is guaranteed execution; its drawback is uncertainty of execution price, especially for large orders or illiquid instruments.
A limit order is an order specifying a limit price. A limit buy will execute only at the specified price or lower; a limit sell — at the specified price or higher. A limit order may not be executed if the market does not reach the specified price, but it provides control over the execution price.
Unexecuted limit orders remain in the order book, providing liquidity to the market. Participants placing limit orders are called liquidity providers; those using market orders are liquidity takers.
A stop order is activated when the market reaches a certain price (stop price) and becomes a market or limit order. A stop-loss is used to limit losses, a stop-buy — to enter a position when a level is broken. It is important to understand that a stop order does not guarantee execution at the stop price — after activation it becomes a regular order.
Additional order types include:
- Immediate-or-Cancel (IOC) — execute immediately in full or in part, cancel the remainder;
- Fill-or-Kill (FOK) — execute fully and immediately or cancel entirely;
- Good-Till-Cancelled (GTC) — order remains active until execution or cancellation;
- Day order — order is valid until the end of the trading session.
The Matching Process
The matching engine is the software that matches buyers’ and sellers’ orders. Modern matching engines process millions of orders per second with latency measured in microseconds.
Most exchanges use the price-time priority rule: orders are first sorted by price (the best price gets priority), then for the same price — by time of placement (earlier order takes priority). This incentivizes participants to offer better prices and place their orders early.
Alternative priority rules include pro-rata (proportional allocation among orders at the same price) and size priority (larger orders are prioritized). Each rule creates different incentives for participants.
Depth and Liquidity
Market depth is the volume of orders at various price levels in the order book. A deep market can absorb large orders without a substantial price move.
Liquidity is a multifaceted concept with several dimensions:
- tightness (narrowness of the spread),
- depth,
- resiliency (ability to recover after shocks),
- immediacy (possibility of immediate execution).
Different instruments may be liquid in one dimension and illiquid in another.
Visible and hidden liquidity: not all orders are displayed in the public order book. Iceberg orders display only a portion of the volume, with the remainder hidden. Dark pools conceal orders entirely until execution. This creates uncertainty regarding the true market depth.
Auction Mechanisms
Many exchanges use auctions to open and close trading sessions. The opening auction aggregates orders accumulated overnight and determines the opening price by maximizing trade volume. The closing auction determines the official closing price, which is important for index funds and NAV calculation.
A call auction (periodic auction) is held at a specified time and matches all orders at a single clearing price. Continuous trading matches orders continuously throughout the session.
Market Microstructure and Information
Market microstructure is the field of finance that studies the process of price formation and market structure. Key questions: how information is reflected in prices, the role of various participants, how market structure affects liquidity and efficiency.
Informed and uninformed traders: theory assumes that some participants possess private information about the asset’s value. Market makers take into account the risk of trading with informed traders by widening spreads. This creates the problem of adverse selection.
Order flow as information: patterns in order flow may contain information about future price movement. HFT firms invest in microstructure analysis to identify informative signals. This creates an arms race in speed and analytical capabilities.
§ Act · what next