Smart Order Routing in Forex: How to Route Orders Across Several Brokers and Liquidity Sources Tuesday December 1st, 2026 – Posted in: Arbitrage Software, Forex trading
Smart Order Routing in Forex: How to Route Orders Across Several Brokers and Liquidity Sources
A smart order router decides where an order goes, how it is split and what happens when part of it is rejected. In forex, where there is no central exchange and every broker and liquidity provider quotes its own price, routing can save a measurable part of the trading cost, or quietly add to it. This guide explains how a forex router works, the all-in cost formula it should use, a worked example with numbers, why the best quote is often not the best fill, the margin and position problem that equity-style routing ignores, and the metrics that show whether routing actually helps.
- Smart order routing in forex: the short answer
- Who routes: the broker, the bridge or the trader
- How a forex router works, stage by stage
- The all-in cost formula
- Worked example: 4 million EUR/USD across three venues
- Last look, stale quotes and the best-quote trap
- Sweep, split or sequence: routing styles compared
- The retail forex catch: positions and margin live at each broker
- Routing in arbitrage and two-leg strategies
- Building a routing loop step by step
- Measuring routing quality
- Risks and limitations
- FAQ
Smart order routing in forex: the short answer
Smart order routing (SOR) in forex is software that compares the prices and conditions of several execution venues, such as brokers, liquidity providers or ECNs, and sends each order, or parts of it, to the venues where the expected total cost is lowest. A good router ranks venues by all-in cost, not by quoted price alone: quoted price plus commission plus the expected cost of rejects, last-look delays and slippage. It sends child orders with immediate-or-cancel instructions, re-routes only the unfilled part, and learns from execution reports. In retail forex there is one extra rule: each broker keeps its own positions and margin, so a router must also track where each position lives.
The idea comes from equity markets, where the same share trades on many exchanges and brokers are required to seek best execution across them. Forex is more fragmented still. There is no consolidated tape and no single best bid and offer: every bank, non-bank market maker, ECN and broker publishes its own stream, and the same EUR/USD quote can differ by fractions of a pip between venues at the same millisecond. Our guide to how liquidity providers and aggregators build a broker’s price explains where those differences come from. Routing is how a trader with several accounts, or a broker with several providers, turns those differences into better fills.
All numbers in this article are computed from stated, illustrative assumptions, not from any broker’s real statistics. Your own execution reports decide the real values.
Who routes: the broker, the bridge or the trader
“Smart order routing” means different things depending on who owns the router. It helps to separate three levels, because the decisions and the information available are different at each one.
| Level | Who runs it | What it routes between | What the trader sees |
|---|---|---|---|
| Broker-side SOR / bridge | Broker or prime-of-prime | Its own liquidity providers (banks, non-banks, ECNs) for A-booked flow | One price and one fill; routing is invisible |
| Venue-side aggregation | ECN or aggregator vendor | Streams from many providers into one book | A deeper book, sometimes with provider tags |
| Trader-side routing | The trader’s own software | Several broker or prime accounts held by the trader | Everything: which account traded, at what cost, with what rejects |
Most marketing material about forex SOR is written by technology vendors for brokers, and describes the first level. This article is mainly about the third: the routing a trader or a trading firm does across accounts they control, for example over FIX API connections to several brokers. The logic is the same at every level, but only at the trader level do you see the full picture, including your own reject rates and the margin you have left at each venue.
It is also worth being clear about what a router cannot do. It cannot see liquidity that a venue does not show, it cannot make a venue honour a quote it decides to reject, and it cannot combine positions held at two different brokers into one. Routing improves the choice between venues; it does not change the venues themselves. If a broker’s execution is poor everywhere, the answer is in measuring and comparing broker execution quality, not in a cleverer router.
How a forex router works, stage by stage
Every router, from a vendor bridge to a few hundred lines of a trader’s own code, goes through the same five stages for each parent order.
- Eligibility. Which venues may take this order at all: the session is connected, the symbol is tradable, there is enough free margin, the order fits the venue’s minimum and maximum size, and any per-venue exposure limit is not breached.
- Market data normalization. Quotes from different venues arrive in different formats, precisions and contract sizes. The router converts them to one scale and discards quotes older than a set age, because a stale quote is a price that no longer exists.
- Scoring. Each price level at each venue gets an expected all-in cost (next section). This is where most routers are too simple.
- Allocation and sending. Size is allocated to the best-scored levels first, subject to caps per venue, and child orders are sent, usually as limit orders with immediate-or-cancel time in force so that nothing rests unintentionally.
- Handling the result. Execution reports come back: fills, partial fills, rejects. The unfilled remainder is re-scored without the venue that just rejected and sent again if the price is still acceptable. Every outcome updates that venue’s statistics.

The stage that separates a useful router from a harmful one is the last. A router that never measures what happened to its orders will keep sending flow to the venue with the most attractive quotes, even if that venue rejects one order in six. The mechanics of the messages themselves, including how immediate-or-cancel differs from fill-or-kill and how partial fills are reported, are covered in our guide to IOC vs FOK and order types for algorithmic execution.
The all-in cost formula
The quoted price is only one part of what an order costs. For a buy order, a practical score for one price level at one venue is:
All terms are in the same unit, for example pips or US dollars per million. Each one comes from data you can collect:
| Term | Where it comes from | Typical mistake |
|---|---|---|
| Quoted distance from mid | The venue’s live quote, normalized | Using a stale quote as if it were live |
| Commission | Account terms: per lot, per million or per side | Comparing a raw-spread account and a standard account on quotes alone |
| Reject rate x penalty | Your execution reports: share of rejected orders and the average price move before the retry | Ignoring rejects because “they cost nothing” |
| Hold-time cost | Time between order and fill on last-look venues, times the typical price move in that time | Treating a 50 ms hold as free |
| Expected slippage | Difference between requested and filled price, per venue and size | Using an average across all sizes and hours |
Commission is easy to get wrong because formats differ. A commission of 25 US dollars per million per side on EUR/USD equals 0.25 pip, because one pip on one million EUR/USD is worth 100 US dollars. Our article on raw spread vs standard account costs has the conversion for other pairs and commission formats.
The reject penalty deserves special attention. A reject is not neutral: venues tend to reject when the price has just moved against the order, so the retry usually happens at a worse price. If your logs show that the price is on average 0.6 pip worse when you retry after a reject, and a venue rejects 15% of orders, that venue’s quotes carry a hidden cost of 0.15 x 0.6 = 0.09 pip on every order.
Worked example: 4 million EUR/USD across three venues
Assume a trader needs to buy 4 million EUR/USD. The mid price is 1.08500 and three venues show the following offers. The numbers are illustrative, chosen to show the effect clearly.
| Venue | Offers (price x size) | Commission per side | Reject rate | Expected cost, first level |
|---|---|---|---|---|
| A, firm quotes | 1.08502 x 1M, 1.08504 x 2M, 1.08507 x 3M | USD 25/M = 0.25 pip | 2% | 0.20 + 0.25 + 0.01 = 0.46 pip |
| B, last look | 1.08501 x 1M, 1.08505 x 2M, 1.08508 x 3M | USD 35/M = 0.35 pip | 15% | 0.10 + 0.35 + 0.09 = 0.54 pip |
| C, firm quotes | 1.08503 x 3M, 1.08506 x 3M | USD 20/M = 0.20 pip | 1% | 0.30 + 0.20 + 0.01 = 0.51 pip |
Venue B has the best quote, 1.08501, but it also has the highest commission and the highest reject rate. Here is what happens under five different choices, with the reject penalty set at 0.6 pip:
| Execution choice | Fills | Quoted, pips | + commission | + expected rejects | Cost on 4M, USD |
|---|---|---|---|---|---|
| Only broker B | 1M @ 01, 2M @ 05, 1M @ 08 | 0.47 | 0.82 | 0.91 | 366 |
| Only broker A | 1M @ 02, 2M @ 04, 1M @ 07 | 0.43 | 0.68 | 0.69 | 275 |
| Only venue C | 3M @ 03, 1M @ 06 | 0.37 | 0.57 | 0.58 | 232 |
| Routed by quoted price | 1M B @ 01, 1M A @ 02, 2M C @ 03 | 0.23 | 0.47 | 0.50 | 201 |
| Routed by all-in cost | 1M A @ 02, 3M C @ 03 | 0.28 | 0.49 | 0.49 | 198 |

Three lessons come out of this small example.
- Splitting is where most of the gain comes from. No single venue has enough size at its best price, so any single-venue execution walks up the book. Splitting takes the top of each book and cuts the cost from 0.58 pip at the best single venue to about 0.49 pip.
- The quoted price ranks venues in the wrong order. By quote, B is the best venue. After commission and rejects, it is the worst. A router looking only at the quote would send its first child order to B every time.
- The two routing methods are close on paper, but not in practice. The quoted-price route has 0.50 pip of expected cost; the all-in route 0.49. The bigger difference is that a quarter of the quoted-price volume goes to a venue that rejects 15% of the time, which means more retries, more partial fills and more uncertainty about the final price.
Last look, stale quotes and the best-quote trap
Many forex liquidity providers use last look: when an order arrives, the provider has a short window, often tens of milliseconds, to check the price again and accept or reject the trade. The FX Global Code accepts last look as a risk-control tool but expects providers to disclose how they use it. For a router it has two consequences. Venues with last look can quote tighter, because they are protected from orders that arrive after the market has moved. And their rejects are concentrated exactly in the moments when the market moves, which are the moments when a retry costs the most. Our article on last look and broker execution transparency describes how to detect it from your own fills.
This creates a trap that grows with the number of venues. The more venues a router compares, the more likely it is that the best quote at any moment comes from a venue with last look or from a quote that is a few milliseconds stale. A router that ranks by quoted price systematically picks those venues. We modelled this with a simple Monte Carlo simulation:

The simulation is not a forecast for any real broker, but the pattern is robust and matches what traders see in practice:
- Diminishing returns. Going from one venue to three cuts the all-in cost from 0.65 to about 0.57 pip in the model. Going from four to eight saves only another 0.05 pip. Each extra venue also adds a connection to maintain, a margin balance to fund and another source of rejects.
- A growing gap between expectation and reality. With one venue, the quoted-price router underestimates its cost by 0.05 pip. With eight, by 0.10 pip, because the best quote is more and more often a quote that will be rejected.
- Rejects are the signal. The share of orders that needed a re-route rose from 8% to about 14% for the quoted-price router and stayed between 8.5% and 10% for the all-in router. If your reject rate rises when you add a venue, the new venue’s quotes are probably not as good as they look.
Stale quotes cause the same problem without any last look. If one venue’s feed is 20 ms slower than the others, its quotes are a picture of the past. When the market moves up, the slow venue still shows the old, lower offer, and a quoted-price router will buy there, or try to. This is the same effect that latency arbitrage exploits from the other side, and the reason a router must drop quotes older than a set age.
Sweep, split or sequence: routing styles compared
Once the venues are scored, there are several ways to send the order. None of them is always right; the choice depends on size, urgency and how the venues behave.
| Style | How it works | Strength | Weakness | Suits |
|---|---|---|---|---|
| Best venue only | Whole order to the single best-scored venue | Simple, one ticket, one position | Walks up one book on larger sizes | Small orders, few venues |
| Parallel sweep | Child orders sent to several venues at the same moment, sized to visible liquidity | Fast; takes top of book everywhere before it moves | Risk of overfill if venues fill more than shown; signals the order to all venues at once | Urgent orders, arbitrage legs |
| Sequential (waterfall) | Best venue first, then the remainder to the next one | No overfill; each step uses fresh information | Slower; price can move between steps | Large orders without urgency |
| Sliced over time | Parent order cut into small pieces over seconds or minutes | Lower market impact | Price risk while waiting; more tickets | Large positions, quiet markets |
Two practical rules apply to all of them. First, every child order should carry a limit price equal to the worst price you are willing to accept, so that a fast market cannot fill it far from the expected level. Second, in a parallel sweep the total of the child orders should not exceed the parent order unless you have a plan for the overfill, for example by sending slightly less than the full visible size to venues that tend to fill more than they show.
The retail forex catch: positions and margin live at each broker
In equities, shares bought on three exchanges settle into one account at one broker. In retail and most professional forex, this is not true. If a trader holds accounts at three brokers and routes a buy order across all three, the result is three separate long positions, each with its own margin, its own swap and its own stop-out level. They are not netted.
That has consequences that equity-style routing logic does not handle:
- Closing must go back to the same venue. A long position at broker A can only be closed by selling at broker A. If broker B now has the better bid, selling there opens a new short at B instead of closing the long at A. Both positions then carry swaps and margin until they are closed separately.
- Margin is a routing constraint. Free margin at each venue limits what it can take. A router that keeps sending flow to the cheapest venue will run that account out of margin while the others sit idle. Many traders add a cap per venue or a soft penalty when an account’s margin use rises above a set level.
- Exposure must be aggregated by the trader. Risk limits, stop-losses and daily loss limits have to be calculated across all accounts, because no single broker sees the whole position.
- Funding has a cost. Capital split across several brokers earns less and carries counterparty risk at each one. The routing gain has to be larger than the cost of keeping that capital spread out.
Prime brokerage solves part of this for institutions: trades with several liquidity providers are given up to one prime broker and settle in one account. Most retail and small professional traders do not have that, so their router must keep a per-venue position book and route closing orders to the venue that holds the position.
Routing in arbitrage and two-leg strategies
Arbitrage strategies are a special case of routing. The decision is not just “where is this order cheapest” but “which pair of venues gives a profitable spread after costs, and can both legs be filled”. The same all-in cost formula applies to each leg, and the reject term is even more important, because a rejected second leg leaves an open, unhedged position.
In our own software the routing question appears in this form. In SharpTrader, a strategy works with several connections at the same time, typically a fast price source and one or more broker accounts, and the strategy settings define which account trades and which source is the reference. The practical lesson is the same as in the simulation above: a venue’s quoted prices say little until you have its fill and reject statistics, and a setup that picks venues by quote alone tends to drift towards the venues that reject the most. For multi-leg trades, a common and safer approach is to route the leg with the higher reject risk first and send the second leg only once the first is confirmed, accepting a few milliseconds of delay in exchange for fewer unhedged positions.
Building a routing loop step by step
Whether you configure a vendor bridge or write your own router, the same seven steps produce a routing loop you can trust and measure.
1
2
3
4
5
6
7

Measuring routing quality
A router is only as good as its measurement. Without numbers it is impossible to tell whether routing saves money or just adds complexity. These are the metrics worth tracking per venue, per symbol and per hour of the day:
| Metric | Definition | What a warning looks like |
|---|---|---|
| All-in cost vs mid | Fill price minus mid at order time, plus commission, in pips | Routed cost not better than the best single venue |
| Fill ratio | Filled volume divided by requested volume | Below 90-95% on a venue that shows enough size |
| Reject rate | Rejected child orders divided by all child orders | Rising when the market moves; clustered around news |
| Hold time | Time from order sent to execution report | Long and variable hold times on one venue |
| Slippage | Fill price minus requested limit or reference price | Only negative slippage, never positive |
| Markout | Mid price 100 ms, 1 s and 5 s after the fill, compared with the fill price | Fills that are consistently good on paper and bad a second later |
Markout deserves a word of explanation. It measures where the market went right after a fill. If your buys on one venue are regularly followed by a falling price, that venue is filling you when it is convenient for it, not for you. If your fills are regularly followed by a rising price, your orders are fast, and the venue may start rejecting them or widening its spreads. Both are worth knowing before adding size. Slippage measurement methods are covered in detail in our guide to forex slippage and how to measure it.
A simple, honest benchmark is to compare routed execution with “what if every order had gone to the best single venue”. If the routed cost is not lower after a few thousand orders, the routing logic, the venue set or the measurement needs to change.
Risks and limitations
- Overfills and duplicates. Parallel child orders can all fill, leaving a larger position than intended. Cap the total and reconcile positions after every routed order.
- Information leakage. Spraying orders to many venues at once tells all of them that a large order is in the market. Some providers react by widening quotes.
- Broker terms and flow profiling. Brokers monitor the flow they receive. Patterns such as many very short trades, orders sent only when one venue is stale, or a high share of rejected orders can lead to wider spreads, more rejects or account restrictions. Read each broker’s terms and route within them; see our overview of brokers for algorithmic and arbitrage trading.
- Model risk. Reject penalties and hold-time costs are estimates. They change by hour, by news calendar and by venue policy. A score that was right last month can be wrong today.
- Operational complexity. Every venue adds a connection that can drop, a margin balance that can run out and a symbol mapping that can break. Some of the theoretical gain is always spent on keeping the system running.
- Counterparty risk. Capital spread across several brokers is exposed to each of them. Routing does not reduce that risk; it multiplies the number of counterparties.
Execution across several accounts with BJF Trading Group
SharpTrader connects to several broker sessions and price sources at once and gives each strategy explicit control over which account trades and which feed is the reference. If you are building a multi-broker setup, start with the connections and measure each venue before routing real size.
Free arbitrage scanner + short email course
Get the free scanner link and a few short, practical emails from Boris: what a price gap really means after costs, how to test a strategy before risking real money, and which tools fit your market. No hype.
FAQ
What is smart order routing in forex?
Smart order routing in forex is software that compares the prices and conditions of several execution venues, such as brokers, liquidity providers or ECNs, and sends each order or parts of it to the venues where the expected total cost is lowest. It handles splitting, rejects and partial fills automatically.
Is smart order routing worth it for a retail trader?
Only if you trade enough size or frequency for the saving to matter and you can measure it. In our illustrative example routing saved about 0.09 pip per order against the best single venue. That matters for high-turnover strategies, but the cost of funding several accounts and running the connections can outweigh it for small, infrequent traders.
Why is the best quoted price not always the best execution?
Because the quote does not include commission, the chance that the venue rejects the order, the delay of last-look checks or the slippage on the fill. Venues with the tightest quotes often have the highest reject rates, and rejects happen when the price has just moved, so the retry is usually at a worse price.
How does last look affect order routing?
Last look lets a liquidity provider re-check the price for a short time after receiving an order and reject it. Venues with last look can quote tighter, but their rejects cluster in fast markets. A router should add the expected cost of those rejects and the hold time to each venue’s score.
Can I close a position at a different broker from where I opened it?
No. In forex each broker holds its own positions. Selling at a different broker opens a new short position there instead of closing the long, and both positions carry margin and swaps until each is closed at its own broker. A multi-broker router must keep a position book per venue.
How many brokers or liquidity providers should a router use?
In our simulation the first three to four venues delivered most of the cost improvement and further venues added little, while increasing rejects for a quoted-price router. In practice the right number depends on how different the venues are and on the cost of funding and maintaining each connection.
Which metrics show that order routing is working?
All-in cost against mid compared with a single-venue benchmark, fill ratio, reject rate, hold time, slippage and markout after the fill, tracked per venue, symbol and hour. If routed cost is not lower than the best single venue after a few thousand orders, the routing needs to change.