Basic Prerequisites: Smart Order Routing & Fragmentation - Hub (or none - this page needs no prior finance).


1. Intuition & Practical Objective

Start with the question a beginner never asks: when you press “buy 1,000 shares”, which computer actually gets the order? The answer in a modern equity market is several, at once. The stock does not trade in one place. It trades simultaneously on many venues - the primary listing exchange, a handful of competing exchanges, dozens of ECNs and dark pools - and each of them holds only a slice of the total book. This is market fragmentation, and it is the reason smart order routing (SOR) exists.

Three “aha”s take you from “I click buy” to a working mental model of routing:

  1. There is no single “best price” - only a cross-venue best. Each venue publishes its own best bid and offer. The true best price for a buyer is the minimum ask across all venues (the NBBO ask), which may sit on a venue you have never heard of. A router that only looks at one venue is, structurally, missing the market.

  2. The best price is usually not big enough. The venue showing the best quote typically shows small size - a few hundred shares. Your 1,000-share order walks that venue and overflows to the next-best price elsewhere. So routing is not “pick the best venue”; it is “sweep the best prices in order across venues.”

  3. Quoted price is not the price you pay. Two venues can show the same quote and cost you different amounts, because venues differ in take fees / make rebates, in latency (how stale the quote is when your order arrives), and in the toxicity of the flow that meets you there. SOR minimizes an all-in effective price, not the screen price.

The landscape in one picture. Fragmentation arose because competition and technology let new venues undercut incumbents: low-cost electronic limit-order markets (BATS, Chi-X, Turquoise) took share from Nasdaq and NYSE until the incumbent venues held only a minority of volume in their own listed stocks (O’Hara & Ye 2011 report Nasdaq at 31% and NYSE at 37% of their listed stocks’ volume in 2008). Every later Pillar 2 topic - execution algorithms, latency systems, fill probability - assumes this multi-venue reality.

The one-sentence essence. “Fragmentation means no single venue holds your order, so a smart order router sweeps the best all-in price across venues in order - quote plus fee plus latency - instead of trusting one screen.”


2. Mathematical Ground Truth & Derivations

Why a single venue fails: convexity of the sweep. Let a venue show an ask ladder with sizes . Buying shares there yields the average price

which is piecewise-linear and convex in ; the marginal cost jumps at every level boundary. This convexity is why size and venue choice cannot be separated.

Fragmentation as a network externality. Liquidity generates a network externality: orders attract orders, so concentration is natural. Hasbrouck (Ch 1) states the tension exactly - the liquidity externality favors consolidation, while retail-vs-institutional differences and market-designer innovation favor fragmentation. The observed multi-venue equilibrium is the uneasy resolution.

The cross-venue optimum (why the greedy sweep is correct). A parent buy is allocated across venues with ask ladders; minimizing total cash cost

is a linear program whose optimum is the greedy global price ladder: merge every venue’s levels into one sorted list, and buy from the cheapest up. Fragmentation does not change what is optimal - it changes how many places you must reach to execute it.

Fragmented vs consolidated - the same depth, spread across venues. If venues and each honor time priority internally but not across each other, the aggregate depth is preserved (Glosten 1998, summarized in Biais et al. 2005): with order-handling rules that route the remainder to the other market, the individual quotes widen (less quantity at the best price) but the aggregate quantity available at the best price is larger than under one market. Fragmentation thins each book but need not thin the market.


3. Computational Implementation - why routing is unavoidable

Show that no single venue can absorb the order, and that a router sourcing across venues fills it better. Standard library only; re-executed and reproduced.

Read the numbers. The venue showing the best top-of-book (C at 100.00) holds only 800 of the 1,500 shares - a whole order sent there is left 700 shares short and pays 100.0225 on what fills. The largest venue (A, 800 shown) is no better and costs 100.0350. Only the cross-venue router fills the entire order, at 100.0193 - and it must touch all three venues to do so. The single cheapest price in the market (100.00) carries just 200 shares: fragmentation means the good price is always the small price.


4. Failure Modes & First-Principles Breakdowns

  1. “Best venue” thinking. The beginner error is to route the whole order to the venue with the best quote. Best price ≠ enough size; the order then walks that venue’s ladder and overflows (or is left unexecuted). The correct frame is a cross-venue sweep, not a venue choice.
  2. Ignoring the convexity of the sweep. Because is convex, doubling size more than doubles slippage once the best level is exhausted. Size must be matched to the aggregate displayed depth across venues, not one venue’s.
  3. Forgetting that fragmentation cuts both ways. Fragmentation creates competition that lowers fees and spreads (O’Hara & Ye 2011; Biais et al. 2005) but also thins each book and requires infrastructure (the consolidated view) to navigate. A router that assumes a single deep book will systematically mis-size. See 05 · Failure Modes.

5. References

  • Hasbrouck, Joel - Empirical Market Microstructure (2007)
  • O’Hara, Maureen & Ye, Mao - “Is market fragmentation harming market quality?” JFE 100(3), 2011.
  • Biais, Glosten & Spatt - “Market microstructure: A survey,” JFM 8(2), 2005.
  • Harris, Larry - Trading and Exchanges (2003). The accessible map of venue competition and order routing for a zero-knowledge reader.

6. Connected Graph Bridges