Market microstructure & order books

The limit order book: how to read an order book

∞structural
By . Reviewed 19 November 2026. As of 2026: a permanent feature of the market, not an edge that decays.

An order book lists every resting buy and sell order by price. Read it from the touch outwards: best bid and ask, the spread, then the size at each level.

See it move

The limit order booktrade against itIX-LOB
Best bid99.99
Best ask100.01
Mid100.000
Spread0.02
pricedepthsize
100.01
1,033
100.02
955
100.03
1,103
100.04
1,060
100.05
323
100.06
342
100.07
336
100.08
342
spread0.02mid 100.000
99.99
1,168
99.98
810
99.97
736
99.96
975
99.95
928
99.94
719
99.93
648
99.92
183
Order size900

What to notice. A market order doesn't trade at “the price”. It walks the book, consuming each level in turn, and the more you take the worse your average fill. That walk is market impact.

Reading the book from the touch outwards

Here is the XYZ book from the worked example below (illustrative; sizes in lots, tick 0.01). Start at the best prices, the touch, and work outwards.

PriceAsks (sellers)Bids (buyers)
50.03500
50.02200
50.01100 (best ask)
50.00300 (best bid)
49.99400
49.98600

First the touch: the best bid is 50.00 and the best ask is 50.01. Then the spread, one tick, which puts the mid at 50.005. Then the depth: how much size waits at each price behind the touch. Only 100 lots offer at 50.01, against 300 bidding at 50.00. Last, price your own size against it: the sweep section below works through a 250-lot market buy. The depth is what tells you the cost before you trade.

A limit order book (LOB) is a venue's live, ranked record of every unexecuted limit order for one instrument. In their survey, Gould et al. (2013) note that LOBs match buyers and sellers in more than half of the world's financial markets. One side holds bids (buy orders), ranked highest price first; the other holds asks (sell orders), ranked lowest price first. The best bid and best ask set the quoted price, and the orders behind them set how much you can trade and what it costs.

Picture two queues facing each other across a counter. Buyers write down the most they will pay and join the bid queue; sellers write down the least they will accept and join the ask queue. The gap between the highest bid and the lowest ask is the spread, and nothing trades until someone is willing to cross it.

Two order primitives drive everything. A limit order says "buy or sell up to NN at price PP or better". If it cannot execute at once it rests in the book and adds liquidity (the maker). It never trades at a worse price than PP, but it may never trade at all. A market order says "buy or sell NN now, at whatever the book offers". It removes liquidity (the taker) and fills if there is depth, but at no guaranteed price.

The "central" in central limit order book means one shared book per instrument per venue, which every participant posts into and matches against, in contrast to bilateral dealer quotes (see quote-driven vs order-driven markets).

The same structure runs outside the US: India's NSE describes its trading system as order-driven, with every order carrying an order number and a time stamp and orders stored in price-time priority.

Levels, depth and the spread

The book is organised into price levels, each aggregating every order resting at one price. The best bid and best ask are level 1 (the top of book, or "the touch"); levels 2, 3 and beyond sit at successively worse prices. Depth is the volume at each level, and the spread together with the depth profile describes the cost of trading any given size.

The midpoint of the best bid and ask is the mid price. In a liquid stock the spread is a single tick (the minimum price increment); in thin names it can be many ticks.

The mid price is the average of the best bid and best ask; the spread is the gap between them.
mid=12 (p1bid+p1ask),spread=p1ask−p1bid\text{mid} = \tfrac{1}{2}\,(p^{\text{bid}}_1 + p^{\text{ask}}_1), \qquad \text{spread} = p^{\text{ask}}_1 - p^{\text{bid}}_1

A book can have a one-tick spread and still be thin: with little size at the touch, even a modest order walks through several levels. The depth chart, cumulative volume plotted against price, is the standard picture of this. Biais, Hillion and Spatt (1995) studied the Paris Bourse's computerised book and found that order flow clusters near the quotes, with a thin book drawing in limit orders and a thick one drawing in trades.

The tick size floors the spread and shapes queueing behaviour (see price-time priority and queue value). In US equities, Rule 612 of Regulation NMS (the US Securities and Exchange Commission's 2005 rulebook for stock markets) bars quotes in increments smaller than one cent for stocks priced at $1.00 or more. In 2024 the SEC adopted a half-penny minimum for certain stocks, but compliance has been deferred to the first business day of November 2027, so the one-cent tick still applies. In the EU, Commission Delegated Regulation (EU) 2017/588 under MiFID II sets the tick from the share's price and a liquidity band based on its average daily number of transactions.

How a market order sweeps the book

A market order matches the best resting orders first, then the next level, then the next, until it is filled. If it is larger than the size at the touch it walks the book, and each successive fill is at a worse price. A market buy eats the lowest ask, then the next, climbing the ask ladder; a market sell descends the bid ladder.

The volume-weighted average fill price (VWAP) minus the mid is your slippage, the cost of demanding immediacy.

Your realised price for a sweep is each level's price weighted by the size you took there; slippage is that price minus the pre-trade mid.
VWAP=∑ipi vi∑ivi,slippage=VWAP−mid\text{VWAP} = \frac{\sum_i p_i\, v_i}{\sum_i v_i}, \qquad \text{slippage} = \text{VWAP} - \text{mid}

Suppose the asks are 100 at 50.01, 200 at 50.02 and 500 at 50.03. A market buy for 250 fills 100 at 50.01 and 150 at 50.02, so the VWAP is (100⋅50.01+150⋅50.02)/250=50.016(100\cdot 50.01 + 150\cdot 50.02)/250 = 50.016. You paid 0.6 ticks above the touch and 1.1 ticks above the pre-trade mid, and that gap is your impact.

This is the mechanical root of market impact: size moves the price because it consumes depth. It is also why execution algorithms slice large orders instead of sweeping them in one go.

L1, L2 and L3 data

The three levels describe how much of the book a data feed exposes: L1 is the top of book, L2 is aggregated depth per price, and L3 is individual orders. The labels vary by venue, so read what each feed actually sends (all feed facts below were read on 13 November 2026).

LevelWhat it showsBook typeExample feedsWhat you can infer
L1Best bid and ask, their sizes, the last tradeTop of bookNSE's Level 1 dataThe price and the spread; nothing about depth
L2Total size at each price, to a limited depthMarket-by-priceCME MDP 3.0 market-by-price (3, 5 or 10 levels deep, set per instrument); Binance depth streams (5, 10 or 20 levels, or a diff stream of changed levels); NSE Level 2 (5 levels) and Level 3 (20 levels)The cost of sweeping a given size; not how many orders make up a level
L3Each displayed order, with its own identifierMarket-by-orderNasdaq TotalView-ITCH 5.0; CME market-by-order full depth; NSE tick-by-tick dataQueue position on a price-time book, because each order's place in line is visible

Level 1 says nothing about depth or queues. Level 2 (market-by-price) is the standard input to most microstructure work. NSE calls its 20-level aggregated depth "Level 3" and sells order-by-order data as tick-by-tick, so the same label means different things on different venues.

Level 3 (market-by-order) gives each displayed order with its own identifier, price, size and arrival time, so you can see where in the queue an order sits. Nasdaq's TotalView-ITCH 5.0 specification shows what this looks like in practice: an Add Order message carries an order reference number, and later Order Executed, Order Cancel, Order Delete and Order Replace messages refer back to it, with a Replace issuing a new reference number. Replaying that stream rebuilds Nasdaq's displayed book deterministically. Non-displayed orders get no Add Order message, so hidden size and the hidden part of reserve orders stay invisible until they trade, when the feed reports a separate trade message. The same feed carries a Net Order Imbalance Indicator for the opening and closing crosses (see continuous trading vs auctions).

CME's MDP 3.0 publishes both market-by-price and market-by-order on the same channels, but its market-by-order sequence follows the order in which orders arrived, "regardless of the match algorithm", so on a product that matches pro-rata an order's rank is not its share of a fill.

Feeds differ by venue: Binance, for example, streams aggregate quantity per price level (a snapshot plus incremental updates), which carries no order identifiers and so cannot recover queue position. Studying fill probability needs order-by-order data (see price-time priority and how high-frequency data is recorded). Cont, Stoikov and Talreja (2010) show what that data buys you: they model the book as queues with random arrivals and cancellations, and from the state of the book they compute the probability of a mid-price rise and the probability that an order at the bid executes before the ask moves, illustrating both on Tokyo Stock Exchange data.

The matching engine

The matching engine is the venue software that receives every order message, applies the matching rules, executes crossing orders and publishes the resulting book updates. It is the single source of truth: an order only exists, has a queue position and fills when the engine says so.

The core loop is short. Accept a message and validate it. If a new order crosses the opposite side, match it against resting orders by the priority rule and print the trades; otherwise rest it in the book. Then publish the update to the market-data feed.

The engine applies priority (price first, then usually time, though some derivatives venues allocate pro-rata; see price-time priority), the order types it supports, and any auction phases. Latency lives here too. Your order is timestamped when it reaches the engine, and the feed the engine publishes is what everyone else reacts to. The gap between acting on a feed and your order arriving is the whole substance of latency arbitrage and the systems work.

It also matters for backtesting. To simulate fills faithfully you must replay the exact message sequence the engine saw (see backtesting and simulation).

Worked example: a one-tick book for XYZ

Take a book for an instrument XYZ (prices in currency, sizes in lots). The numbers are illustrative. The asks rest at 50.01 (100), 50.02 (200) and 50.03 (500); the bids rest at 50.00 (300), 49.99 (400) and 49.98 (600). The tick is 0.01.

The best ask is 50.01 and the best bid is 50.00, so the spread is one tick and the mid is 50.005. Bid depth at the touch is 300 lots; ask depth is just 100.

A market buy for 250 fills 100 at 50.01 and then 150 at 50.02, giving a VWAP of 50.016. Slippage against the mid is 50.016−50.005=0.01150.016 - 50.005 = 0.011, about 1.1 ticks. The trade also exhausts the 100 lots at 50.01, so the best ask becomes 50.02: the act of trading moved the touch up a tick.

By contrast, a limit buy for 100 at 50.00 does not execute. It joins the back of the 300 lots already resting at 50.00, so it sits behind 300 lots (queue position 300) and fills only once those ahead have traded or cancelled, which is why queue position costs you fills. The live book widget above lets you build and break any book you like.

Sources

  1. Gould, M. D., Porter, M. A., Williams, S., McDonald, M., Fenn, D. J. and Howison, S. D. (2013). "Limit order books". Quantitative Finance 13(11), 1709–1742. doi.org (preprint: arxiv.org)
  2. Biais, B., Hillion, P. and Spatt, C. (1995). "An empirical analysis of the limit order book and the order flow in the Paris Bourse". Journal of Finance 50(5), 1655–1689. doi.org
  3. Cont, R., Stoikov, S. and Talreja, R. (2010). "A stochastic model for order book dynamics". Operations Research 58(3), 549–563. doi.org
  4. Nasdaq. "Nasdaq TotalView-ITCH 5.0" (message specification). nasdaqtrader.com
  5. Tick-size rules: SEC (2005), Regulation NMS adopting release, Release No. 34-51808 (Rule 612); SEC (18 September 2024), Release No. 34-101070; SEC (11 June 2026), temporary exemptive relief, Release No. 34-105656; Commission Delegated Regulation (EU) 2017/588. sec.gov, sec.gov, federalregister.gov, legislation.gov.uk
  6. CME Group. "MDP 3.0 - Book Management" and "MDP 3.0 - Market by Order - Book Management", CME Globex client systems wiki (read 13 November 2026). cmegroupclientsite.atlassian.net, cmegroupclientsite.atlassian.net
  7. National Stock Exchange of India. "Real Time Data Subscription" (data levels) and equity market trading system page (read 13 November 2026). nseindia.com, nseindia.com
  8. Binance. Spot API documentation, WebSocket streams, depth streams (repository read 13 November 2026). github.com

Where this fits

Common questions

What is a limit order book?
A limit order book (LOB) is the venue’s live, sorted record of all resting buy (bid) and sell (ask) limit orders at each price. The highest bid and lowest ask form the best bid and offer; the gap between them is the spread. Incoming market orders consume resting liquidity from the top down. It is the central data structure of every order-driven market.