Make the flow case first
Once the case for owning the customer relationship is settled, the harder question is whether there is enough opposing flow to justify matching it in-house. An engine does not create liquidity. It organises orders that can be matched under rules the firm must define, operate and defend.
Start by separating eligible flow from total volume. Remove orders that must be routed for a specific instrument, market, client instruction or regulatory reason. Then measure how often eligible buy and sell interest overlaps by instrument and time window. A daily total can conceal the problem: a broker may handle 20,000 orders a day but have little contra-side interest at the moment each order arrives.
For a first estimate, replay at least 60 to 90 trading days of timestamped orders. Model several matching windows, such as immediate matching, 10 milliseconds and 100 milliseconds.
Longer windows can raise the chance of finding a contra-side, but delay execution and increase exposure to price movement, stale quotes and client complaints. Test volatile sessions separately rather than letting quiet hours dominate the average.
A venue is usually the stronger starting point when flow is thin, one-sided or spread across many instruments. It brings access to external liquidity and established execution rules. An internal engine becomes more plausible when flow is repeatable, two-sided and sufficiently concentrated to provide reliable fills without leaving the firm with unmanaged inventory.
Price the full operating model
Compare total cost over a year, not the engine licence against a venue fee. The table gives typical market ranges in US dollars for a smaller institutional operation. They are planning estimates, not audited results, and vary with asset class, jurisdiction, service level and whether the firm already has the people and systems.
| Cost line | Own matching engine, typical range | Venue route, typical range |
|---|---|---|
| Initial build or integration | $500,000-$3 million one-off | $50,000-$500,000 one-off |
| Engineering and support | $900,000-$2.4 million a year, typically 6-12 specialist staff | $150,000-$600,000 a year for integration and operations |
| Compute, storage and disaster recovery | $100,000-$600,000 a year | $50,000-$300,000 a year |
| Connectivity, market data and access | $100,000-$700,000 a year if external hedging remains necessary | $100,000-$800,000 a year across access and data, depending on venue count |
| Execution charges | Typically 0.1-2 basis points on externally hedged notional in some cash markets | Typically 0.1-2 basis points in some cash markets, with product-specific fees and rebates |
These ranges are deliberately broad. Venue tariffs, clearing, market data and cross-connect charges differ sharply between products and locations. Use the actual schedule for each venue and calculate cost on executed volume, not headline turnover. Internal matching also does not remove execution costs if residual exposure is hedged externally.
Include less visible costs: surveillance, client reporting, legal review, testing environments, on-call cover and periodic disaster-recovery exercises. Trading Technology's broker infrastructure coverage can help frame the systems involved, but the firm's own flow and venue contracts determine the business case.
Model the execution path
Draw the order path from client gateway to final confirmation for both options. For an internal engine, specify where pre-trade risk checks run, how orders enter a sequenced book, what determines priority, and how fills reach the client ledger, risk system and reporting store. A stated matching latency is meaningless if gateway checks, database writes or downstream position updates dominate the end-to-end time.
For a venue route, measure the same path, including network round trips, gateway queues, throttles, venue acknowledgements and drop-copy processing. A typical low-latency institutional network path to a nearby venue may be in the 1-10 millisecond range, while a cross-region route can be tens of milliseconds or more. These are broad operating ranges, not promises. Capture your own median, p99 and worst-case measurements under load.
Define matching behaviour before implementing it. Price-time priority is common, but a broker may need rules for partial fills, minimum quantities, self-trade prevention, cancel-replace priority and auctions. Make the rule deterministic so the same ordered event log can reproduce the same book state after a restart. Persist sequence numbers and decisions; timestamps alone are not enough to reconstruct ordering when clocks differ.
Test the economic outcome as well as latency. Compare fill rate, rejection rate, slippage against a consistent reference price, hedge cost and time-to-hedge. Break results down by instrument, order size, client type and volatility band. If internal fills look better only because difficult residual orders are excluded from the sample, the comparison is not useful.
Own the failure modes and controls
Running an engine means taking responsibility for market integrity and operational controls that a venue otherwise supplies as part of its service. A private book can also create conflicts between the firm's interests and those of customers. The legal treatment depends on the product and jurisdiction, so have counsel test the model before launch. Technical controls should make the approved policy enforceable rather than relying on desk procedure.
- Set hard limits for order size, price collars, credit, position and aggregate exposure, with independent kill switches.
- Prevent self-trading across accounts and strategies, and record the rule that blocked or permitted each interaction.
- Keep an immutable event trail covering order receipt, amendments, matching decisions, fills, rejects and downstream acknowledgements.
- Monitor stale prices, one-sided books, abnormal fill ratios and hedge delays. Alert thresholds should be tested against normal intraday variation.
- Reconcile the engine, client ledger, risk book and hedge venue continuously. Flag breaks within seconds or minutes, not at end of day.
Design for a failed dependency, not just a failed process. Decide whether the engine stops accepting orders if market data, risk checks, persistence or a hedge venue is unavailable.
Test restart and recovery with live-like order rates. A system that recovers quickly but silently loses sequence state can produce worse outcomes than a longer, controlled outage.
Choose with thresholds, not preference
Use a common model for the two choices. Feed it the same eligible orders, market data, client mix and stress periods.
For each scenario, calculate net revenue after external hedging, venue fees, rebates, staffing, infrastructure and expected slippage. Treat any value for internalised flow as conditional: the firm must still show that it can execute fairly, maintain sufficient liquidity and manage the risk left unmatched.
Run sensitivity cases rather than relying on one forecast. Change eligible-flow share by 20-30 per cent, double the expected hedge delay, and add a venue or data-fee increase. Compare the result with the cost of keeping the venue route. If the internal case only works at optimistic volume or assumes no operational incidents, it is not solid enough to support a build.
A hybrid is often a sensible architecture: match eligible flow internally under defined rules, then route residual orders to one or more venues. It adds routing logic and reconciliation work, but avoids treating the engine as a replacement for external liquidity. Set a maximum inventory and exposure budget, plus a routing trigger when contra-side interest is absent or the reference price becomes stale.
Agree measurable gates before development starts. Examples include a minimum internal fill share, a maximum p99 end-to-end latency, a maximum hedge delay and a defined reconciliation break tolerance. The threshold depends on the product and risk appetite; what matters is that the same measures appear in the simulation, acceptance tests and production dashboard.
Checklist before committing
Use this checklist to turn the comparison into testable work. Assign an owner and evidence source to every item. If a figure cannot be produced from existing data, that is a data gap to close before approving a build.
- Measure eligible orders, not just gross volume, across 60-90 trading days and include volatile sessions.
- Calculate contra-side overlap by instrument and time window, including the 5th-percentile hour.
- Replay matching windows and compare fill rate, slippage, rejects and residual hedge cost.
- Price staff, hosting, connectivity, market data, clearing, surveillance and on-call coverage for both models.
- Specify priority, partial-fill, cancel-replace, self-trade and stale-price behaviour in a versioned rules document.
- Define pre-trade limits, kill switches, audit records and the response to unavailable risk or market-data services.
- Test deterministic recovery, reconciliation and venue failover at expected peak order rates.
- Set launch gates and a rollback route, then review results against the same production metrics each week.
Do not approve the project on a daily average or a forecast. Pull 30 trading days of timestamped orders, calculate the internally matchable share in the 5th-percentile hour, and check that figure in your own data: 5%.
Frequently Asked Questions
When should a broker build its own matching engine?
A broker should consider an engine when eligible flow is repeatable, sufficiently two-sided and concentrated in instruments where internal matching is permitted. The model must still cover unmatched exposure, controls, staffing and external hedging costs.
How much does a matching engine cost to run?
Typical planning ranges for a smaller institutional operation include $500,000-$3 million for initial build and $900,000-$2.4 million a year for engineering and support. Infrastructure, connectivity, market data and execution charges add costs that depend on product and venue mix.
What should be tested before routing orders to a venue?
Measure end-to-end latency, fill and reject rates, slippage, hedge cost and recovery behaviour under load. Include venue acknowledgements, drop-copy processing, reconciliation and the response to market-data or connectivity failure.
Platforms · Software · Providers · Markets