Execution
Smart order routing after fees: what "best price" really means
The best quoted price is rarely the best price you get. A worked example shows how taker fees, depth, fee tiers, settlement currency and the cost of moving balances change the answer, and what a routing engine has to consider to get it right.
- Author
- Genesis Ark Engineering
- Published
- Reading time
- 7 min read
"We route to the best price" is one of the most common claims in crypto trading, and one of the least precise. Best price before or after fees? For the first unit, or for the whole order? In which quote currency? Using balances you already hold at the venue, or ones you would have to move there?
This article works through what a smart order router (SOR) actually has to calculate to deliver a best price in a meaningful sense, and how you can tell whether yours does.
The top of the book is not the price
Every venue publishes a best bid and a best offer. Comparing those across venues is the simplest form of routing, and it is almost always wrong for institutional size.
The top of the book shows the price for a limited quantity. A buy order larger than the quantity at the best offer walks up the book, taking progressively worse prices. The price you pay is the volume-weighted average across every level you consume, and that depends on how much depth each venue has.
A venue with a slightly better top-of-book price and thin depth can be the worst choice for a large order. A venue with a slightly worse top price and deep liquidity can be the best.
Then add the fees
Crypto venues charge trading fees as a percentage of notional, usually with different rates for orders that take liquidity (taker) and orders that add it (maker). Rates vary by venue, by account tier and sometimes by instrument. An institutional account can be on a very different fee schedule from the venue's public rates.
Because fees are proportional to notional, they act exactly like a worse price. A taker fee of a given number of basis points on a buy order raises your effective price by that many basis points. Two venues quoting the same price but charging different fees are not offering the same price.
A worked example
Suppose you want to buy 10 BTC against USDT. Three venues have the following offers and fee rates for your account. The numbers are illustrative.
| Venue | Taker fee | Level 1 | Level 2 | Level 3 |
|---|---|---|---|---|
| Venue A | 10 bps | 3 BTC at 64,000 | 4 BTC at 64,010 | 5 BTC at 64,030 |
| Venue B | 4 bps | 2 BTC at 64,005 | 6 BTC at 64,015 | 6 BTC at 64,040 |
| Venue C | 2 bps | 1 BTC at 64,020 | 4 BTC at 64,030 | 8 BTC at 64,045 |
Route 1: best top-of-book, all on one venue. Venue A has the best offer at 64,000. Buying all 10 BTC there takes 3 at 64,000, 4 at 64,010 and 3 at 64,030: a volume-weighted price of 64,013.00. Add the 10 bp fee, about 64.01 per BTC, and the all-in price is roughly 64,077.01.
Route 2: lowest fee, all on one venue. Venue C has the lowest fee. Buying 10 BTC there takes 1 at 64,020, 4 at 64,030 and 5 at 64,045: a volume-weighted price of 64,036.50. Add the 2 bp fee, about 12.81, and the all-in price is roughly 64,049.31. Already better than Route 1, despite a worse top-of-book price.
Route 3: split by fee-adjusted price. Now rank every price level across all venues by its price plus that venue's fee, and fill from the cheapest level upward.
| Venue | Size | Offer | Fee | Fee-adjusted price |
|---|---|---|---|---|
| Venue B | 2 BTC | 64,005 | 4 bps (about 25.60) | 64,030.60 |
| Venue C | 1 BTC | 64,020 | 2 bps (about 12.80) | 64,032.80 |
| Venue B | 6 BTC | 64,015 | 4 bps (about 25.61) | 64,040.61 |
| Venue C | 4 BTC | 64,030 | 2 bps (about 12.81) | 64,042.81 |
| Venue C | 8 BTC | 64,045 | 2 bps | about 64,057.81 |
| Venue A | 3 BTC | 64,000 | 10 bps (64.00) | 64,064.00 |
Filling 10 BTC from the top of this list takes 2 on B, 1 on C, 6 on B and 1 on C. The all-in average is roughly 64,038.05. That is about 39 per BTC better than Route 1, or around 6 bps, and about 11 per BTC better than Route 2, on an order where every venue's top price was within 20 of the others.
Notice that Venue A, which had the best quoted price, receives nothing. Its fee makes it the most expensive venue for this account at this size.
What else changes the answer
The example above is the minimum a router should do. In practice, several other factors change which route is best.
Fee tiers and rebates. Your fee rate at a venue often depends on your trailing volume. A router that knows your current tier at each venue can rank venues correctly. Some venues pay rebates to makers or to accounts in broker programs, which can make passive orders cheaper than they look.
Maker versus taker. If the order does not need to fill immediately, posting a passive order at or inside the best price can earn a maker rate or rebate instead of paying a taker fee. That trades certainty of execution for cost, and a good algorithm manages the trade-off explicitly.
Quote currency. BTC/USDT, BTC/USDC, BTC/USD and BTC/INR are different instruments. A router that compares them must convert at a current rate and account for the cost of holding or converting the settlement currency. A price that looks cheaper in USDT may not be cheaper once you account for what it costs to get USDT.
Where your balances are. You can only buy on a venue where you hold enough of the quote currency, and only sell where you hold the asset. Routing to a venue where you lack balance means moving funds first, which takes time, carries network fees and adds risk. A router that ignores balances will propose routes you cannot execute.
Book staleness and latency. Order book data is a snapshot that ages quickly. By the time a child order reaches a venue, the level it was aimed at may be gone. Routers handle this by using fresh data, placing limit prices on child orders rather than sending market orders, and re-routing the unfilled remainder.
Hidden and dark liquidity. Some venues and dealers offer liquidity that is not visible on the book, through iceberg orders or RFQ. For block sizes, the best price may come from a dealer quote rather than from any order book.
Market impact. Taking all visible liquidity at once can move prices on other venues as market makers adjust. For large orders, working the order over time with an algorithm often beats sweeping every book at once, even after fees.
What a good router records
Best execution is not just about the decision. It is about being able to show the decision afterwards. For every routed order, a router should record:
- The consolidated book it saw, by venue, at the moment of the decision
- The fee rates it applied for each venue
- Balances or limits that excluded any venue
- The child orders it sent, with limit prices and times
- What each child order received, and how the unfilled remainder was handled
With that record, transaction cost analysis can compare the result with arrival price, interval VWAP and the best available fee-adjusted price, and answer the question your compliance team and your clients will ask: was this a good execution, and how do you know?
How to test your current routing
You can check how well your routing performs with data you already have.
- Take a sample of recent orders with their fills and the fees charged.
- Recompute the all-in price of each fill, including fees.
- Compare against arrival price, the mid or far-side price when the order was received.
- Compare venue by venue. If one venue consistently produces worse all-in fills, either its fees or its depth are not being accounted for.
- Check the excluded venues. Look for times when a venue you had balance on offered a better fee-adjusted price and received nothing.
If the analysis shows consistent gaps, the cause is usually one of three things: fees are not in the ranking, depth is ignored in favor of top-of-book, or balances are not known at decision time.
The short version
"Best price" in crypto means the best achievable average price for the full size of the order, after fees, in the currency you settle in, using balances you actually hold, with a record that proves it. Anything less is the best quote, which is a different and much less useful thing.