In week one, a venue connection is usually the faster path: connect the order gateway, map symbols and time-in-force instructions, then validate acknowledgements and fills. By week six, an internal matching engine may already be matching simple flow, but only if the team has also built controls for balances, rejects, cancels, outages and reconciliation. The calendar difference matters less than what is being measured.
The comparison is not simply venue fees versus server costs. A venue supplies access to external liquidity and its own matching process. An internal engine decides which client orders can interact, at what price, and when remaining exposure is routed or hedged. For a broker or prop firm, the decision depends on flow, instrument, execution obligations and the ability to operate the whole path under stress. The following measures make that trade-off testable.
Set the boundary before measuring
Draw both execution paths from the same starting point: the client order arriving at your edge. For the venue path, include validation, risk checks, routing, network transit, venue acknowledgement and the return of the execution report.
For the internal path, include the same edge and risk checks, then matching, allocation, ledger updates and any hedge sent to a venue. Comparing the venue's published matching time with your engine's end-to-end time is not useful.
Keep market data in scope too. Record the age of the quote used for a decision, the timestamp source, and the time from market-data receipt to order submission.
A fast engine using a stale price can produce worse execution than a slower route using current data. Synchronise clocks with PTP where practical, and record monotonic timestamps at each service boundary. Keep client, gateway and venue timestamps separate rather than assuming their clocks align.
Define the population before taking averages. Split by instrument, order type, client segment, session, route and market condition.
A market order during a quiet session is not a useful comparator for a limit order during a volatility spike. Use the same order intent and quote snapshot for both options where possible, and retain rejects and unfilled orders in the data. Reporting only completed trades creates survivorship bias.
Measure the whole decision path, not the matching component in isolation.
Teams documenting platform boundaries and provider dependencies can use Trading Technology's infrastructure coverage as a reference point. The measurement plan, however, should come from the firm's own order logs and venue statements.
Measure latency and capacity at the order level
Latency needs several clocks, not one headline number. Track client-to-gateway, gateway-to-risk decision, risk-to-match or route, match-to-report, and report-to-client. Record p50, p95, p99 and maximum values, plus counts by outcome.
P99 often exposes queueing and garbage collection that a mean hides. A long tail matters if it changes a fill, triggers a timeout or causes a duplicate order.
The table gives illustrative typical ranges, not audited performance for any provider. Actual results vary with asset class, geography, connectivity, order mix and measurement boundaries. Treat them as planning ranges, then replace them with controlled tests and production observations.
| Metric | Venue route, typical range | Internal engine, typical range | Measurement boundary |
|---|---|---|---|
| Order decision to acknowledgement, p99 | 2-30 ms | 0.2-2 ms | Gateway decision to internal or venue acknowledgement, same region where possible |
| Monthly service availability target | 99.9%-99.99% | 99.9%-99.99% | Include your connectivity, gateway and failover, not just the venue SLA |
| Venue execution charges | 0.1-3 bps of traded notional | Not applicable as a venue fee | Include rebates, clearing, market data and connectivity separately |
| Annual fixed engineering and operations cost | $0.2m-$0.8m for integration and support | $0.8m-$2.5m for a small production capability | Typical planning range, including staff and infrastructure, not a quoted price |
| Capacity test rate | 2-10 times normal peak order rate | 2-10 times normal peak order rate | Test bursts, cancels, rejects and recovery, not just steady new orders |
Capacity is not the same as messages per second in a synthetic benchmark. Run a representative mix of new orders, amendments, cancels, partial fills and rejects.
Measure queue depth, CPU, memory, garbage-collection pauses, database lag and recovery time after a node fails. A system that handles a high steady rate but accumulates a queue during a burst may miss the price or risk limit that mattered.
Set a service objective for each stage. For example, your internal match may need to stay below a defined p99, while the full client acknowledgement objective allows for network variability.
Publish both numbers to operations. This makes it possible to tell whether a breach sits inside your engine or in an external dependency.
Compare execution quality, not just charges
A venue invoice gives only part of the cost. Calculate effective cost from the decision price to the fill price, in basis points, and include fees or rebates. For a buy, measure how far the fill is above the decision price; reverse the sign for a sell. Also calculate implementation shortfall against a consistent arrival-price definition. Keep spread capture, market impact and delay cost distinct where the data supports it.
For internal matching, compare the fill with the same reference price and time horizon. Record the portion of eligible orders matched internally, the fraction subsequently hedged, hedge slippage, and residual exposure by instrument.
A higher internal fill rate is not automatically better. If clients trade against stale prices or one side is informed, retained flow can create adverse selection that exceeds the avoided venue fee.
Build a counterfactual from matched order samples. Compare orders with similar size, side, urgency, volatility and quote age. Report at least these measures by segment:
- Fill rate, partial-fill rate, reject rate and time to first fill.
- Effective spread and implementation shortfall at fill, then at 1, 5 and 30 seconds.
- Hedge slippage and the time exposure remains open after an internal match.
- Cancellation rate, price improvement, and the share of orders that would have been marketable at the venue.
Beware of comparing internal fills only with venue fills. Unfilled orders and orders that were never routed are part of the result.
Replay captured market data through both policies where the legal and technical setup permits, then validate the replay against a live, controlled cohort. State the confidence limits and keep market regimes separate.
Calculate the break-even volume and operating burden
Estimate economics per unit of notional, then compare the saving with the full cost of operating the engine. Suppose internal matching and routing choices save 0.4 basis points on eligible volume, after hedge slippage and adverse selection. If annual fixed costs are $1.2 million, the simple break-even is $30 billion of eligible annual notional: $1.2 million divided by 0.00004. This is an illustration, not a market benchmark. If only half of flow is eligible, total firm turnover must be twice that amount.
Run the calculation separately by instrument and client segment. Include market-data licences, exchange connectivity, clearing, compliance controls, incident cover, resilience testing and the engineering time needed to keep adapters current.
Include the opportunity cost of venue rebates or access arrangements that depend on routed volume. Model a low-volume case and a stressed case with wider spreads, more toxic flow and less internalisation.
Use a staged decision process:
- Measure the current venue path for at least a representative range of sessions, including high-volatility periods.
- Calculate eligible internal volume and all-in cost per unit, including hedge outcomes and fixed operating costs.
- Run a shadow matcher that records hypothetical decisions without changing client execution. Compare fills, risk and tail latency.
- Test a limited live cohort with caps on exposure, order size and instruments, plus a defined route-back procedure.
- Expand only when the measured economics and operational controls meet pre-agreed thresholds.
Break-even should include the cost of failure. A venue outage may be handled by a secondary route, while an internal engine outage can stop matching and leave positions or client balances in an uncertain state. Price the staffing needed for on-call cover, reconciliation and incident response. A small team with one specialist may be cheaper in a spreadsheet but can create a single point of failure.
Make the decision reversible and observable
Keep the routing policy configurable by instrument, order type and client class. Define limits for maximum unhedged exposure, quote age, engine queue depth and venue rejection rate. Each limit should trigger an explicit action: reject, route externally, pause internal matching or reduce size. Test those actions in a failure exercise, including stale market data, broken sessions, duplicate reports and a venue that acknowledges slowly.
Reconcile the order, execution, position and cash ledgers continuously. An internal match can create two client-side fills while a separate hedge remains incomplete. Operations needs a durable link between those events, a clear owner for breaks, and an auditable record of the price and policy used. Track recovery-point and recovery-time objectives against measured failover drills, not design documents.
Review the results monthly, but do not collapse them into one blended cost. Keep latency distributions, execution quality, eligible volume, hedge exposure and incidents visible by segment.
Venue use can remain the better choice for instruments with thin internal flow, while an engine earns its cost in a narrower, repeatable pool. The right architecture can be hybrid and change as liquidity, regulation or client mix changes.
Before approving another build phase, take the last 30 days of order events and calculate the p99 from gateway decision to client-visible acknowledgement. Go and check the p99.
Frequently Asked Questions
When does a broker need its own matching engine?
An engine becomes worth evaluating when a material share of flow can match internally and the net saving remains after hedging, adverse selection, staffing and infrastructure. Model eligible notional by instrument and client segment rather than applying one firm-wide average. A hybrid route can be more suitable than replacing venue access.
How should I compare matching engine latency with venue latency?
Use the same start and end points for both paths, ideally from the gateway decision to the client-visible acknowledgement. Record p50, p95 and p99, and separate internal processing from network and venue time. Include queueing, report handling and risk checks rather than quoting the matching component alone.
What costs should be included in a venue comparison?
Count trading charges, rebates, clearing, market data, connectivity and integration support. For an internal engine, include engineering and operations staff, hosting, resilience, monitoring, compliance controls and hedge costs. Compare both on the same eligible volume and notional basis.
How can a team test internal matching before routing live orders?
Run a shadow matcher against captured market data and record hypothetical prices, fills, exposure and latency without changing execution. Compare it with venue outcomes using similar orders and conditions, then validate the model with a capped live cohort. Define route-back and exposure limits before that cohort starts.
Platforms · Software · Providers · Markets