Market MicrostructureMedium
In short
What actually happens in the milliseconds between clicking Buy and owning something — order books, makers and takers, auctions and the plumbing of price.
5 min read · 987 words · Updated
The order book: where price lives
Every liquid market's heart is the same data structure: a limit order book — resting buy orders (bids) and sell orders (asks) queued by price and time. The best bid and best ask frame the spread; the mid-point is "the price" your app displays, though nobody can actually trade there.
Point at a line to read what it is doing.
How do I read this chart?
Price runs across with the mid in the middle, cumulative size up. This is not a price chart: it is how much can be traded at each price, which is a different question and the one that decides what a large order actually costs.
Where this is explained properly:
The axes carry no scale on purpose. Every line here is a stylised shape drawn to show a mechanism, so there is no number to read off one — and any figure taken from it would be invented.
- Market order: takes what the book offers, immediately — you pay the spread for certainty.
- Limit order: names a price and waits — you earn the spread if filled, risk missing the move if not.
- Depth is the honest measure of liquidity: how much can trade before the price moves. The chart's V-shape is what "liquid" looks like.
- Price-time priority runs the queue: best price first, first-come first-served within a price — the reason speed became an arms race.
Makers, takers and the spread's economics
- Market makers quote both sides continuously, earning the spread while carrying inventory risk — today overwhelmingly algorithmic (Citadel Securities, Virtu, Optiver and peers).
- The spread prices three things: order-processing cost, inventory risk, and adverse selection — the chance the person trading with you knows something. That third component is why spreads blow out around news: makers widen against the informed.
- Maker-taker fees: exchanges rebate liquidity providers and charge takers — microscopic per share, decisive at scale, and the origin of much routing controversy.
The speed layer: HFT in three sentences
- High-frequency firms are mostly electronic market makers and arbitrageurs — they compressed spreads massively versus the human era, while concentrating the business in a handful of firms.
- The dark side is fragility in stress: quotes can vanish in milliseconds (the 2010 Flash Crash's lesson), which is why circuit breakers and volatility pauses now lattice every major market.
- Speed advantages are measured in microseconds — microwave towers between Chicago and New York exist because light in fibre is too slow. Whether that race produces social value is a fair and open question.
Auctions: where the benchmark prices are made
- Continuous trading gets the attention; auctions set the prices that matter. Opening and closing auctions batch all orders into one crossing price.
- The closing auction is the day's main event in US and European equities, because index funds must trade at the close their benchmarks use — so a large block of the day's volume arrives in a few minutes.
- IPO pricing, LME metals rings, and volatility-halt reopenings are all auctions too: when price discovery is hard, markets fall back to batching.
Off-exchange: dark pools and wholesalers
- Dark pools match orders without displaying them — institutions hiding size from the market's front-runners. A share of US equity volume large enough to matter trades off-exchange, so the visible book is not the whole market.
- Payment for order flow: US retail brokers sell their order flow to wholesalers who fill it at (slightly) better-than-exchange prices and profit from its harmlessness — retail flow carries little adverse selection. The EU banned the practice in 2024; the US debates it perennially.
- The trade-off in one line: retail gets zero commissions and decent fills; the public order book gets thinner — and everyone argues about which effect wins.
Practitioner rules
- Limit orders in anything illiquid, always — the book's thin tail is where market orders go to be punished (see the order-execution deep dive).
- Respect the open and love the close: spreads are widest at 9:30, liquidity deepest in the closing auction.
- Slippage is a strategy tax: measure fills against the mid at decision time — a strategy that "works" before impact often doesn't after. The market's microstructure is a cost curve, and every trader is somewhere on it.
Information and education only. This page explains a mechanism in general terms, using simplified textbook models and illustrative figures. It is not advice, not a recommendation, and not a valuation you can rely on. Conventions and rules differ by market and jurisdiction and change over time.
Check yourself
Three questions on this page. Your answers stay in this browser and feed the learning record; one you keep missing comes back in the weak-spot drill.
What does a trader accept by using a market order instead of a limit order?
Show the answer
Paying the spread in exchange for an immediate fill. A market order takes what the book offers now; a limit order names a price and waits, earning the spread but risking missing the move.
Why do market makers widen their spreads around news?
Show the answer
To protect against adverse selection by informed traders. Part of the spread prices the chance the counterparty knows something; around news that chance rises, so makers widen against the informed.
Why is the closing auction such a large event in equity trading?
Show the answer
Index funds have to trade at the close their benchmarks use. Benchmarks are struck at the close, so funds tracking them batch their orders into that single crossing price.
More in Concepts
- MediumMargin & CollateralThe system's real constraint: not who has capital, but who can post it today
- MediumModel RiskEvery price that is not a traded price is the output of a model, and a model is an argument with assumptions in it
- MediumHow a Position Hits the BooksThe same holding can be worth three different numbers depending on which shelf it was put on the day it was bought —…
- MediumOption Strategy BuilderCombine calls, puts and the underlying into one position — and see the combined payoff, breakevens, Greeks and…