gummy-stuff.org Markets as machinery · and the arithmetic underneath

Section 02 · The Book

Depth

The order book has layers. The best price is only the surface.

Trading screen displaying a stock market order book with bid and ask prices

§ 01What sits behind the top of the book

The bid and ask you see quoted on any screen are the best prices available at that instant — the highest anyone is willing to pay and the lowest anyone is willing to accept. But they are not the only prices. Behind each sits a stack of resting orders at progressively worse levels, and that stack is the depth of the market.

Picture a simple limit order book for a share. At the ask side, perhaps five hundred shares are offered at 100p, another eight hundred at 100.5p, and two thousand more at 101p. On the bid side, four hundred sit at 99.5p, a thousand at 99p, and so on down. A small order — say, three hundred shares — lifts the best ask at 100p and leaves the rest untouched. The quoted price barely moves. A large order for three thousand shares eats through the 100p level, consumes the 100.5p level, and reaches into the 101p stock, which means the buyer's average execution price is worse than the posted best ask. That slippage — the difference between the quoted price and the actual fill price — is the cost of size in a thin book.

A ledger of handwritten columns under a desk lamp
Fig. 2

Price in one column, quantity in the next. The two answer different questions and were kept apart long before either was electronic.

Photo: Matvei / Pexels

This is why traders distinguish between the quoted spread, which describes only the top of the book, and the effective spread or market impact, which describes what a real-sized trade actually costs. A market can look tight at the top and still be expensive to use if the layers behind are sparse.

Depth is not a fixed property. It changes in real time as orders are placed, cancelled and executed. In calm conditions, resting liquidity tends to accumulate because limit-order traders are willing to wait. When uncertainty rises — ahead of a major announcement, during a rapid price move — those same traders cancel their resting orders rather than risk being caught on the wrong side of a fast market. The book thins. The same trade that caused negligible impact an hour earlier now moves the price sharply, because each level holds far less size.

At the ask side, perhaps five hundred shares are offered at 100p, another eight hundred at 100.

Market makers and other professional liquidity providers actively manage their depth. They post multiple levels simultaneously, adjust the quantities at each level to reflect their risk appetite, and pull or replenish the book as conditions change. When they pull back together — as they routinely do at moments of stress — the visible liquidity can vanish far faster than the spread widens, which is why depth and spread are related but distinct measures of market quality.

Regulators and exchange operators monitor aggregate depth statistics precisely because the surface price can look normal while the layers beneath have quietly hollowed out.

A bank of screens in a dim room, a figure in silhouette
Fig. 3

The same two columns, lit differently. Nothing about the mechanism changed when the room became a screen.

Photo: Phil Desforges / Pexels

Lifted out of the flow · 01

How size moves through the book

TermWhat it is
resting ordera limit order sitting in the book waiting for a counterpart; not yet executed
slippagethe gap between a quoted price and the actual average execution price of a large order
market impactthe price movement caused by a trade itself, as it consumes successive levels of depth
effective spreadthe real round-trip cost of a trade, accounting for fill prices rather than quoted prices
liquidity providera participant who posts resting orders at multiple price levels, supplying depth