
Smart order routing: how one order is split across many venues
When the same asset trades on many venues at once, a router decides where each piece of an order goes. This guide shows how that decision is made in equities and in crypto.
In 30 seconds
Smart order routing (SOR) is software that takes one order and decides which trading venues should receive it, and in what pieces. It compares prices, fees, available size, speed and the chance of a fill, then splits the order so the total cost is as low as possible. In crypto, routers work across centralized exchanges and on-chain liquidity pools.
What a smart order router does
A trader who wants to buy an asset rarely finds all the size needed at one price on one venue. Liquidity is spread across several order books, each with its own best price, depth and fee schedule. A smart order router sits between the trader and those venues and makes the routing decision automatically.
Its work breaks into a few jobs:
- Venue selection: which venues have the asset, at what price and with how much size.
- Order slicing: how to divide the parent order into child orders, and whether to send them at once or over time.
- Fees: taker fees, rebates and, on-chain, network costs, which can change the ranking of venues.
- Latency: how long a child order takes to arrive, since the target quote may be gone by then.
- Fill probability: how likely a displayed or hidden order is to trade, based on past behavior.
The output is a routing plan that keeps updating. As child orders fill or miss, the router rereads each book and sends the remainder where it now fits best.
Reg NMS and the trade-through rule
In US equities, routing became a regulatory matter with Regulation NMS, adopted by the SEC in June 2005. Its Order Protection Rule, Rule 611, requires trading centers to have policies and procedures that prevent trade-throughs: executions at a price worse than a protected quote displayed on another market. Compliance with Rule 611 was phased in during 2006–2007.
The effect was practical. If a stock is offered at 20.00 on one exchange and a trading center executes a buy at 20.01 elsewhere, it has traded through the better quote. To avoid that, brokers and venues must track the best price on every protected market and route there. Rule 611 works together with the national best bid and offer (the NBBO), which joins the best quotes of all exchanges into one reference.
Smart order routers grew into this role. A modern equity router reads quotes from every exchange and routes each child order so no protected quote is skipped. Price protection is only the floor. Above it, routers compete on fees, speed and fill rates.

MiFID II and best execution in the EU
The European Union took a different path. It has no single order protection rule like Rule 611. Instead, Article 27 of MiFID II (Directive 2014/65/EU), which applied from January 3, 2018, requires investment firms to take "all sufficient steps" to obtain the best possible result for clients when executing orders. The factors include price, costs, speed, likelihood of execution and settlement, size and nature of the order.
That duty favors routing technology: a firm that sends every order to one venue struggles to show that it took all sufficient steps. A router that compares venues and records its decisions gives the firm evidence. The best execution guide covers these duties in more detail.
How a router handles one order
- Read venuesCollect prices, depth and fees from every connected venue.
- Rank costsRank each level by effective price after fees and costs.
- Slice orderSplit the parent order into child orders by rank.
- Send childrenRoute child orders, allowing for each venue's latency.
- Check fillsRecord fills and misses, then reroute what remains.
Fragmentation in crypto markets
Crypto markets are more fragmented than equities, and they have no shared reference. There is no consolidated tape and no NBBO, so nothing like Rule 611 ties the venues together. The same asset trades at once on many centralized exchanges and on-chain pools, each at a slightly different price.
For a large order, that spread of crypto liquidity means the best price on any one venue is rarely the best result overall. A router has to keep accounts on several exchanges, hold balances there in advance, and cope with outages. Some routers also check a crypto dark pool before touching the lit books, so that part of the order can cross at the midpoint first.
DEX aggregators and on-chain routing
On decentralized exchanges, routing takes a different form. Many DEXs price trades with an automated market maker, where a liquidity pool holds two assets and the price shifts with every trade. A swap that is large relative to the pool moves the price far, so splitting it across several pools can give a better average.
A DEX aggregator does this in concept the way an equity router does. It reads the reserves of many pools, simulates how much each would return for a given input, and builds a route. The route can split the trade across pools, or pass it through an intermediate token when the direct pair is thin. The whole plan can then execute in one transaction, so it either completes as quoted or fails.
On-chain routing has costs of its own. Each extra pool adds gas, the fee paid to the network to process the transaction. A route that saves a little on price can lose more on gas. Prices can also move between the quote and the block in which the trade lands, which is why swaps carry a slippage tolerance. Transactions waiting in public view can attract MEV, where others reorder or sandwich trades to profit from them.

A worked example: splitting 10 BTC across three venues
The costs a router weighs come down to four in most cases: the quoted price, the venue fee, gas on-chain, and slippage as an order eats into depth. This illustrative example uses three hypothetical venues and a buy order for 10 BTC. Venue A shows the lowest price but charges the highest fee. Venue B shows a slightly higher price with a lower fee. Venue C is an on-chain pool whose price rises with each coin bought.
Ranking by quoted price alone would start at venue A. Ranking by effective price, after fees and gas, puts venue B first. The router fills 5 BTC at B, takes 1 BTC from the pool at C, and only then uses A. A second coin from the pool would cost about 60,075 because of price impact, which is worse than A, so the router stops there.
| Hypothetical venue | Displayed liquidity | Cost on top | Effective price per BTC | Routed |
|---|---|---|---|---|
| Venue B (order book) | 5 BTC at 60,005 | 0.05% taker fee | About 60,035 | 5 BTC, filled first |
| Venue C (liquidity pool) | Price rises with each BTC | Pool fee and gas included in quote | About 60,040 for the first BTC | 1 BTC |
| Venue A (order book) | 4 BTC at 60,000 | 0.10% taker fee | About 60,060 | 4 BTC, filled last |
| Total | 10 BTC | Fees and gas included | About 60,045.50 average | 10 BTC |
Limits and risks of smart order routing
A router is only as good as its data. Quotes it reads may already be stale. A fast market can empty a level between the decision and the arrival of the child order, and the router then has to chase the price.
Routing can also leak information. A burst of child orders hitting several venues at once is visible to fast traders, who may move their quotes before the later children arrive. In crypto, every venue the router uses is also a custody exposure, because balances usually sit on the exchange in advance.
Finally, the router's goal is set by whoever runs it. A broker's router can weigh its own fees or arrangements alongside the client's price. Rules like FINRA Rule 5310 and MiFID II Article 27 exist partly for that reason.
Short answers
Smart order routing FAQ
What does SOR stand for in trading?
SOR stands for smart order routing, or smart order router for the software itself. A smart order router takes one order and decides which venues should receive it and in what sizes, comparing prices, fees, available liquidity, speed and the likelihood that each piece will fill.
Why did smart order routing become common in US equities?
Smart order routing spread in US equities after the SEC adopted Regulation NMS in June 2005. Its Order Protection Rule, Rule 611, requires trading centers to have policies that prevent trade-throughs of protected quotes on other markets, so brokers and venues needed tools that track and reach the best displayed prices.
Does crypto have an NBBO for order routing?
No. Crypto has no national best bid and offer and no consolidated tape, so there is no single reference that ties exchanges together. A crypto smart order router has to read prices from each centralized exchange and on-chain pool itself and decide which numbers to trust.
How is a DEX aggregator different from a smart order router?
A DEX aggregator is a smart order router for on-chain liquidity. It reads the reserves of many liquidity pools, simulates the output of each, and splits a swap across pools or through intermediate tokens. Unlike most exchange routers, it must also weigh gas costs and usually executes the whole route in one transaction.
Can smart order routing make a trade worse?
Smart order routing can make a trade worse when its data is stale, when quotes vanish before child orders arrive, or when many simultaneous child orders reveal the trader's intent. On-chain, a route through many pools can cost more in gas than it saves in price.
What costs does a smart order router compare?
A smart order router usually compares the quoted price on each venue, the trading fee or rebate, gas costs for on-chain venues, and expected slippage as the order consumes depth. It ranks venues by effective price after those costs rather than by the displayed price alone.
Try it
Tools and games, no sign-up
All of them run in the browser and send nothing anywhere. The numbers are illustrative, never live prices.