Does smart order routing pay? A simulated market and eleven routers
A latency-aware simulation of five trading venues, routers from naive to optimised, and pre-registered experiments on what actually saves money. The simulator runs in your browser below.
- Saved by synchronised sweeps
- 0.69 bps, on 99% of seeds
- Smart router vs naive posting
- 0.31 bps (patient orders)
- Optimal split across venues
- No significant gain
- Pre-registered tests
- 9 primary, 300 seeds each
- Python
- Pyodide
- JavaScript
A US stock trades on more than a dozen exchanges and dozens of dark pools, each with its own fees, rebates, queue lengths and distance from your servers. A smart order router decides where every child order of a large trade goes. Vendors sell that as a source of savings; the obvious objection is that displayed prices are equal across venues most of the time, and what differs (fees, queues, the odds that a quote is still there when your order arrives, who you end up trading with) is hard to see.
So I built a market where all of that is explicit, and asked a narrow question: once fees, rebates, queue position, latency, fill probability, adverse selection and market impact are all counted, does intelligent routing still save money, and which part of it does? I wrote the hypotheses, the metric and the decision rules down before running the evaluation.
Try it #
The box below runs the actual research code: the Python simulator, compiled to WebAssembly by Pyodide, in a background thread of your browser. Pick a market, an order and the routers to compare. Every router faces the same seed, so the differences are the routers’ doing. Seeds 1 to 300 are the experiment’s evaluation seeds, and a 20,000-share order on the default settings reproduces the report’s numbers exactly.
Loading the demo needs JavaScript. The full results are in the report on GitHub.
What I found #
Nine pre-registered comparisons, each over 300 seeds paired by seed, with Holm-corrected p-values. I called a saving material if it was at least 0.25 bps (about $6 million a year for a desk trading $1 billion a day) and significant.
- For orders that cross the spread, routing pays, and the reason is latency. A naive router sends child orders to every venue showing the best price at once. Its first fill, on the nearest venue, makes fast market makers pull their quotes elsewhere within microseconds, so 19% of the liquidity it saw is gone when its slower orders arrive. Timing the sends so that every order lands at the same moment cut that to 2% and saved 0.69 bps [0.66, 0.72], cheaper on 99% of seeds. Ranking venues by fees alone saved 0.11 bps, because the cheapest venues are the slowest and their quotes fade first.
- For resting orders, routing pays less, and rebates are a trap. The full smart router beat posting on the primary exchange by 0.31 bps [0.23, 0.39] on a patient schedule. Choosing the venue by expected cost (queue ahead, fees, fill odds, the cost of crossing later) saved 0.23 bps, just under my bar. Chasing the biggest maker rebate cost 0.06 bps: orders there filled mostly when the price was about to move through them.
- What did not pay. Splitting each slice across venues with the Cont–Kukanov optimal-placement model did not beat resting on the single best venue (−0.08 bps, not significant). On an urgent schedule the smart router’s edge over naive posting (−0.19 bps) was not significant. Learning venue quality from scratch within one order, by Thompson sampling, did not help either.
- The checks held. The smart router’s gain survived four other markets (access fees capped at $0.0010, faster quote fading, double the volatility, triple the latency gaps: 0.30 to 0.52 bps), and disappeared with four identical venues, where it was 0.12 bps worse: extra machinery only costs when there is nothing to route around.
Where a resting order fills matters as much as whether it fills. Fills on the high-rebate venue were followed by the price moving against them; fills on the inverted venue and on the speed-bump venue, which withdraws stale resting orders before latency arbitrageurs arrive, were followed by favourable moves. That is the pattern Battalio, Corwin and Jennings (2016) document on US exchanges.
The biggest lever was not the venue at all: resting first instead of crossing the spread saved about 3.8 bps, twelve times what venue choice added. In this model resting orders carry no permanent price impact, so that number is an upper bound, and I treat the venue comparisons at a fixed tactic as the result.
How it works #
- The market. Four lit venues and a dark pool, modelled on US market structure but fictional: a maker-taker primary exchange, a high-rebate exchange, an inverted exchange that pays takers, a low-fee exchange with a 350-microsecond speed bump, and a dark midpoint pool that prices off a stale quote. Every venue matches by price-time priority. A hidden fair value moves with news and with order flow.
- The other traders. Market makers quote where their edge after fees allows, so the high-rebate venue gets long queues and the inverted one short ones, and they react to news and to trades on other venues within tens of microseconds. Uninformed traders route by fees or by displayed size. Latency arbitrageurs race the market makers for quotes that news has made stale, and win about a fifth of all volume, close to what Aquilina, Budish and O’Neill (2022) measured on the London Stock Exchange.
- The router’s view. A router sees each venue’s book as it was one network delay ago, and its orders and cancels take 150 to 380 microseconds to arrive.
- The routers. Eleven configurations of one executor with a shared schedule: naive, fee-aware, synchronised and model-based sweeps for crossing the spread; primary, rebate, queue-aware and Thompson-sampling venue choice for resting; the Cont–Kukanov split; and a smart router that combines them. The model-based ones learn only from separate training seeds.
- The test. Every router runs on the same seeds with common random numbers: the same news and the same background orders, until its own orders change the market. That makes a router’s difference from another 30 times less noisy than its raw cost.
Limits #
- One stylised stock and five stylised venues. The parameters reproduce qualitative facts from the empirical literature (one-tick spreads, longer queues where rebates are higher, a fifth of volume in latency races, quote fading), not one stock’s data, so the magnitudes belong to this market.
- Market makers follow fixed rules and never learn about the router, and resting orders have no permanent impact.
- Every router uses the same time schedule; scheduling itself is not optimised.
How it’s built #
A pure-Python package with no dependencies for the simulator and routers, so the same code runs in the browser. Runs are bit-identical across platforms: the simulation uses only basic floating-point arithmetic (logarithms included) and platform-stable random streams, and fingerprints of reference runs are locked in tests, which also show that the browser demo reproduces them. The 49 tests include a differential test of the order book against a naive reference over 12,000 random operations and a check of the Cont–Kukanov solver against brute force. The experiments, about 9,400 simulated parent orders, run in 20 minutes on a laptop.