When people search for “high frequency trading infrastructure”, they usually find one of two things: an engineering blog about FPGAs and nanoseconds, or a sales page for a colocation rack. Both are accurate. Neither tells you which parts of that stack matter for your trading, or what it costs to get “fast enough” for a given strategy.
This guide does both. First it walks through the real architecture of a low-latency trading system, layer by layer, the way an HFT firm builds it. Then it compares three tiers (institutional HFT, small prop shops and funds, and a retail arbitrage trader) and shows where the money goes in each. The point to take away: what counts as good infrastructure depends on where your bottleneck is. For most retail traders that bottleneck is not in their own hardware.
What “HFT infrastructure” actually means
HFT infrastructure is everything between a price change at the exchange and your order arriving back at it. In practice it falls into five layers:
- Location: where your servers physically sit relative to the exchange’s matching engine or your broker’s trade server (colocation, proximity hosting, a VPS in the same data centre, or a PC at home).
- Network: how the bits travel: cross-connects inside the data centre, fibre or microwave between cities, switches and network cards.
- Hardware: CPUs, memory, network cards and, at the top end, FPGAs (programmable chips that run trading logic directly in hardware).
- Software: the trading system itself, meaning feed handlers, order-book builder, strategy engine, risk checks and order gateway, plus the operating-system tuning underneath.
- Market access and data: the protocol you trade through (native exchange binary protocol, FIX API, a MetaTrader bridge, a crypto WebSocket API) and the quality of the price feed you react to.
A firm can spend millions on the first four layers and still lose to someone with a better fifth layer, and the reverse happens too. Keep that in mind as we go through each one.
The tick-to-trade path: anatomy of a low-latency trading system
The number HFT engineers care about most is tick-to-trade latency: the time from the moment a market-data packet reaches your network card to the moment your order packet leaves it. It measures your own system only. Exchange and network time are tracked separately. Here is the path that number covers.
1. Market data feed handler
Exchanges send prices as a stream of small packets. Equity and futures venues often use multicast, while crypto exchanges and most FX brokers send them over WebSocket, FIX or a MetaTrader connection. The feed handler decodes those packets into internal events. At the top end this runs on the network card or an FPGA, so a packet is decoded before the CPU ever sees it.
2. Order book builder
Decoded events update a local copy of the order book. This sounds trivial, but sequence numbers, gaps, out-of-order packets and resynchronisation are where many home-built systems break. A book that is fast but wrong is worse than useless.
3. Strategy or signal engine
This stage decides whether to act. In market making it re-prices quotes. In latency arbitrage it compares a fast reference price with a slower venue’s quote. In statistical arbitrage it updates a spread model. Serious shops keep this code free of memory allocation, locks and system calls on the hot path, because each one can cost microseconds at random moments.
4. Pre-trade risk check
Before an order leaves, it passes limits on position, order size, price collars and message rate. Regulated venues require these checks for direct market access, so they can’t be skipped. The engineering challenge is making them cheap rather than removing them.
5. Order gateway
The gateway encodes the order in whatever the venue speaks: a native binary protocol, FIX, a broker’s MetaTrader bridge or a crypto REST/WebSocket order API. The protocol alone can change the picture by an order of magnitude. Our comparison of FIX API and MT4 bridge execution covers this in detail for FX.
Location: colocation, proximity hosting and the data centre map
Light in optical fibre travels at roughly two-thirds of its speed in a vacuum, about 200 km per millisecond. No software trick beats distance, which is why the first infrastructure decision is always where.
- Colocation means renting rack space in the same building as the exchange’s matching engine and connecting with a short cross-connect cable. Exchanges often equalise cable lengths so every colocated client gets the same distance.
- Proximity hosting means a nearby data centre, a few kilometres away. It is cheaper and still fast enough for most strategies that aren’t racing the very top firms.
- FX-specific hubs: spot FX has no single exchange, so the action clusters in a few data centres. Equinix LD4 (London), NY4 (New York area) and TY3 (Tokyo) host many liquidity providers, ECNs and broker trade servers. Our guide to choosing a VPS in LD4, NY4 or TY3 explains how to find out which one your broker uses.
Colocation is priced per rack or partial rack, plus power and a monthly fee per cross-connect. The total typically reaches thousands of dollars a month before you buy any hardware, and exchange connectivity and market-data licences come on top. That is why it is an institutional tool.
Network: fibre, microwave and jitter
Between cities, the fastest firms abandoned fibre for line-of-sight microwave and millimetre-wave links, because radio through air travels at close to the speed of light while fibre routes are slower and rarely straight. On the Chicago to New York corridor, the best fibre round trip is roughly 13 ms and microwave is roughly 8 ms. That gap was worth hundreds of millions of dollars in network construction. Microwave carries little bandwidth and fades in heavy rain, so firms run it alongside fibre rather than instead of it.
Inside the data centre, the focus moves to switches with sub-microsecond port-to-port latency, network cards that support kernel bypass, and hardware timestamping. The key metric here is jitter more than the average: a system that is 10 microseconds on average but 2 milliseconds at the 99th percentile will lose exactly the trades that matter. Percentiles come up again in our hop-by-hop breakdown of latency in forex trading.
Hardware and software tricks, and what each one buys
| Technique | What it does | Typical gain (order of magnitude) | Who needs it |
|---|---|---|---|
| Kernel bypass | The application reads packets straight from the network card, skipping the operating system’s network stack | Tens of microseconds down to a few | Firms competing at microsecond level |
| CPU pinning and isolation | Dedicated cores for the hot path, no interrupts, no other processes | Mainly removes jitter spikes | Anyone running a serious system on their own server |
| FPGA | Feed decoding, simple signals and order encoding implemented in hardware | Tick-to-trade well under a microsecond | Top-tier HFT racing for queue position |
| Hardware timestamping and PTP | Accurate clocks across machines, so you can measure every hop | No speed gain, but you finally know where time goes | Everyone who measures latency seriously |
| Lean, allocation-free code | No locks, garbage collection pauses or system calls on the hot path | Removes random millisecond stalls | Every automated trader, at any tier |
Each row buys microseconds, and that only matters if microseconds are the difference between winning and losing your trades. For an exchange market maker competing for queue position, they are. For a trader whose orders pass through a broker’s dealing desk with a 20 ms delay, they are irrelevant. That brings us to the tiers.
Three tiers of HFT infrastructure compared
| Institutional HFT | Small prop shop / fund | Retail arbitrage trader | |
|---|---|---|---|
| Location | Colocation at each exchange | Colocation or proximity hosting, often shared | VPS in the broker’s data centre (LD4, NY4, TY3) |
| Market access | Direct exchange membership, native protocols | Sponsored access, FIX | Broker account via MetaTrader, cTrader or FIX |
| Own system latency | Sub-microsecond to a few µs | Microseconds to tens of µs | Sub-millisecond to a few ms |
| Main bottleneck | Competitors’ speed | Network and venue access | Broker execution and feed quality |
| Rough running cost | Millions per year | Tens to hundreds of thousands per year | Roughly $30-150 a month for a VPS, plus software and a feed |
Treat the cost row as orders of magnitude rather than quotes. What it shows is that the tiers aren’t competing with each other. A retail latency arbitrage trader isn’t racing an exchange market maker. They are exploiting a delay between a fast price source and a slower broker that is measured in milliseconds, so their infrastructure only needs to be clearly faster than that broker’s execution. It does not need to be fast in absolute terms.
Crypto HFT infrastructure: what’s different
The crypto version of this stack looks different in three ways:
- Cloud regions instead of colocation. Many large exchanges run their matching engines in public cloud regions, so “colocation” usually means picking the same cloud region and availability zone. A few venues offer dedicated low-latency connectivity to large clients.
- APIs instead of native feeds. Market data arrives over WebSockets and orders go through REST or WebSocket order APIs, with rate limits and per-account weights. Your design is shaped by those limits as much as by raw speed. Our guide to connecting to crypto exchange APIs for arbitrage covers rate-limit budgets, order-book sync and key security.
- Many venues, 24/7. Cross-exchange strategies have to be in several regions at once and survive reconnects, maintenance windows and partial outages at any hour.
The general rule still applies: find the slowest hop you can’t control, then build just enough infrastructure to stay ahead of it.
What a retail latency arbitrage trader actually needs
If your strategy is latency arbitrage on retail FX or CFD brokers, this is the checklist that matters, in order of impact:
- Put the server next to the broker. A VPS in the same data centre as your broker’s trade server usually turns a 50-150 ms round trip from home into a single-digit millisecond one. No other upgrade comes close to this.
- Use a genuinely faster reference price. The edge is the gap between two prices. If your “fast” feed isn’t actually faster than the broker’s, the rest of your infrastructure has nothing to work with.
- Choose the fastest connection your broker offers. A FIX API session or a well-run bridge can execute noticeably faster than a standard terminal path at some brokers, while at others the difference is small. Measure it.
- Keep the VPS clean. Dedicated resources, no extra terminals or browsers competing for CPU, stable time synchronisation. Here, consistency matters more than raw speed.
- Measure the round trip, not ping. Log the time from signal to fill confirmation. Ping to the server’s IP tells you very little about how long an order takes to fill.
The software running on that VPS is what turns these pieces into a working system. Our latency arbitrage software is built for this setup: fast feeds and broker sessions (MT4, MT5, cTrader, FIX) are connected in one place, and the comparison and order logic runs on a server you control.
Common infrastructure mistakes
- Buying speed where the bottleneck isn’t. A gaming PC with an overclocked CPU at home is still 80+ ms away from a London broker. Location comes first and hardware second.
- Optimising the average and ignoring the tail. A connection that is usually fast but stalls for 300 ms a few times an hour will fill you badly at exactly the busiest moments.
- Assuming the broker is in London because the company is. Trade servers can sit in a different city from the company’s head office. Check before you rent the VPS.
- Treating infrastructure as permanent. Brokers migrate servers and change bridges. Re-measure after any unexplained change in fills.
- Copying institutional blueprints. Kernel bypass and FPGAs solve a race you’re not in. Spend that budget on a better feed or a better-placed server.
Frequently asked questions
What is high-frequency trading infrastructure?
It is the combination of location (colocation or a nearby server), network, hardware, trading software and market access that lets a firm react to price changes and send orders in microseconds to milliseconds. The goal is to minimise and stabilise the time between a price change and your order reaching the market.
How much does HFT infrastructure cost?
It depends on the tier. Institutional HFT with colocation at several exchanges, microwave links and FPGAs costs millions per year. A small prop shop might spend tens to hundreds of thousands. A retail arbitrage trader can run a well-placed VPS for roughly $30-150 a month plus software and data, because their bottleneck is the broker, not microseconds.
What is tick-to-trade latency?
It is the time between a market-data packet arriving at your system and your order leaving it. It measures only your own system (feed handler, book, strategy, risk check, gateway), not the network or the exchange. Top HFT systems measure it in nanoseconds or single-digit microseconds.
Do I need colocation for latency arbitrage?
For retail FX and CFD latency arbitrage, usually no. What you need is a VPS in the same data centre as your broker’s trade server, which gives you a low single-digit millisecond round trip. Exchange colocation is built for competing with other HFT firms at the microsecond level, which is a different game.
Is an FPGA necessary for high-frequency trading?
Only at the very top, where firms compete for queue position at exchanges and a few hundred nanoseconds decide who gets filled. For most automated strategies, well-written software on a tuned server is fast enough, and the money is better spent on location and data quality.
How is crypto HFT infrastructure different from forex?
Crypto exchanges are reached through WebSocket and REST APIs with rate limits, often hosted in public cloud regions, and trade 24/7 across many venues. So crypto infrastructure focuses on running servers in the right cloud region, keeping order books in sync and managing rate limits. Forex focuses on data centres like LD4, NY4 and TY3 and the broker’s execution path.