Market Microstructure
What actually happens in the milliseconds between clicking Buy and owning something — order books, makers and takers, auctions and the plumbing of price.
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.
- 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 — approaching a quarter of daily volume in US and European equities, because index funds must trade at the close their benchmarks use.
- 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. Roughly a third of US equity volume trades off-exchange.
- 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.