Referência de preços para arbitragem de latência: o que torna um feed rápido e como medir sua eficiência

Every latency arbitrage trade is a comparison between two clocks. One clock is the broker you trade on. The other is a reference price feed that, most of the time, learns about a price move a little earlier. The gap between them is the entire edge. If the reference is slow, noisy or stale, you are not arbitraging anything: you are trading on bad information with good-looking software.

Most guides stop at “you need a fast feed”. This one goes further: where reference prices actually come from, what separates a useful feed from a merely fast one, how to measure a feed’s lead time against your target broker yourself, and the safety filters that stop a frozen or spiking feed from opening losing trades. It is vendor-neutral on purpose: the method works whichever source you test.

What a reference price feed is (and what it is not)

Em arbitragem de latência you watch two prices for the same instrument:

  • The reference (fast) feed – a price stream that sits closer to where the price is actually formed: a primary venue, a liquidity provider stream, a futures market, or a faster broker.
  • The target (slow) feed – the quotes of the broker where you place orders. They are derived from upstream prices and pass through more hops, so they sometimes update later.

When the reference moves and the target has not caught up yet, the target is temporarily quoting an old price. The software buys or sells at that old price and closes after the target catches up. The reference feed is never traded on in a one-leg setup: it is a measuring stick, not an execution venue.

Reference feed leads the target broker feed Timeline showing the reference price jumping first, the target broker price following after a delay, and the usable window after subtracting reaction time. One price move, seen by two feeds tempo Referências Target react usable window t0: reference moves t0 + lead: target catches up Lead time = how long the target lags. Your edge only exists in the part of the lead left after your own reaction time (signal, order, network). A feed with no lead gives no window.
The reference feed is a measuring stick: the trade happens on the target broker during the window between the two updates.

Where reference prices come from

“Fast feed” is not one product category. There are five broad families of sources, each with a different mix of speed, cost and practical problems.

Source typeWhy it can leadTypical drawbacks
Primary venue / ECN feed (FX interbank platforms, exchange order books)Prices are formed there; everything downstream copies themInstitutional access, fees, needs a server near the venue to keep the lead
Liquidity provider / aggregated streamClose to the prices many retail brokers re-quoteMay differ from your broker’s own LP mix; conflation can hide fast moves
Futures market (e.g. currency or index futures)Central, deep, often reacts first to newsBasis vs spot, different trading hours, contract rolls
A faster broker or data vendor used as referenceEasy to connect, cheap, often good enough against slow brokersLead is relative; it can shrink when either side changes its infrastructure
Crypto exchange WebSocket feedsThe most liquid exchange tends to move first for a coinRegion-dependent latency, rate limits, reconnects, sequence gaps

The practical lesson: “fastest” is always relative to a specific target. A source that leads one broker by a quarter of a second can lead another by almost nothing, because the second broker already gets prices from a similar upstream. That is why you measure each pair instead of trusting a label.

What makes a reference feed good for arbitrage

Raw speed matters, but it is only one of seven properties. A slightly slower feed that is stable and representative usually earns more than a very fast one that freezes or disagrees with your broker.

1. Lead time against your target

The only speed number that matters is how much earlier the reference shows a move than o seu broker does, measured from o seu server. Advertised “microsecond” latency inside a vendor’s data centre says nothing about this.

2. Stability of that lead (jitter)

A feed that leads by 150 ms on average but sometimes arrives 200 ms late will produce false signals. Look at the spread of the lead, not just the median.

3. Representativeness

The reference must track the prices your broker’s liquidity actually follows. If your broker’s quotes are built from a different pool, the two prices drift apart for reasons that have nothing to do with latency, and the software reads normal disagreement as an opportunity.

4. Tick density and conflation

Some streams send every change; others conflate updates into snapshots every so many milliseconds. Conflation quietly eats your lead and can skip the very first tick of a fast move.

5. Freshness and uptime

A feed that silently stops updating is worse than no feed: the last price stays on screen, the market moves, and the “gap” looks huge. You need explicit stale detection (more below).

6. Distance to your server

A reference feed delivered to the wrong city loses its lead in transit. Place the arbitrage server close to the target broker and make sure the reference also reaches that location quickly; the VPS location guide for LD4, NY4 and TY3 covers how to choose.

7. Clean, comparable timestamps

To measure anything you need to stamp both feeds with the same local clock at the moment each tick arrives. Source timestamps from different systems are useful for diagnostics, but they are not comparable with each other.

How to measure a feed’s lead time yourself

Before you trust any reference, run this test on the same server you will trade from. It takes a few days of recording and a simple script, and it replaces marketing claims with your own numbers.

  1. Record both feeds side by side. Log every tick from the reference and the target with a local, monotonic receive timestamp in milliseconds or better. Use the same machine and the same clock for both.
  2. Normalise the prices. Work with mid prices, and remove a stable offset between the two feeds (many brokers quote with a small, persistent shift). A rolling median of the difference works well.
  3. Find real moves. Mark every moment the reference moves by more than a threshold, for example 0.5 pip within 50 ms. These are the events that matter for arbitrage; quiet drift does not.
  4. Match each move to the target. For each event, find when the target crosses the same price level. The difference between the two receive times is the lead for that event (negative if the target was first).
  5. Look at the distribution. Calculate the share of events where the reference led, the median lead, the 90th percentile, and how often the target never followed (a hint the two feeds do not represent the same market).
  6. Split by session and news. Repeat for Asian, London and New York hours and around scheduled releases. Leads often grow sharply during news and shrink in quiet hours.
Illustrative distribution of reference feed lead time Histogram of lead time for 1,000 price moves. Most moves show the reference leading by 50 to 250 milliseconds, a small share show the target first. Lead time per price move (ILLUSTRATIVE, 1,000 moves) 0 100 200 <-50 -50..0 0..50 50..100 100..150 150..200 200..300 300..500 >500 no follow lead time, ms (negative = target moved first) Reference led: 86% of moves Median lead: ~110 ms Target first or no follow: 14% Red and grey bars are the dangerous part: those moves can look like signals but are not.
Illustrative numbers only. Your own distribution depends on the source, the broker, the server location and the session.

How to read the result

Compare the median lead with your own reaction time: the time from receiving the reference tick to your order reaching the broker. If the median lead is 110 ms and your reaction plus execution takes 80 ms, roughly 30 ms of the window is usable on a typical move, which is thin. If your reaction takes 20 ms, most of the lead is yours (on a typical move). This is exactly where the hop-by-hop view in our guide to o que causa latência no trading de forex becomes practical.

Also watch the trend over weeks. A lead that steadily shrinks usually means the broker improved its price path or changed liquidity providers. The strategy has not “stopped working”; the measuring stick no longer measures anything.

Stale feeds, spikes and other ways a reference lies

The most expensive feed failures are not slow ticks but wrong ones. Every serious arbitrage setup puts a few filters between the raw feed and the signal engine.

Feed health pipeline before the signal engine Raw ticks pass through timestamping, a stale check, a spike filter, a crossed-quote check and offset normalisation before reaching the signal engine; failing ticks pause trading. A reference tick passes four steps before it can trigger a trade Raw tick reference feed Timestamp local clock Stale check last update age Spike filter jump vs others Crossed / offset bid<ask, shift Signal engine Fail: pause signals for this symbol log it, alert, resume only after fresh, sane ticks A frozen or spiking reference creates the largest “gaps” you will ever see, and every one of them is false.
Feed health checks cost a fraction of a millisecond and prevent the most expensive class of arbitrage losses.
  • Stale detection. If the reference has not updated for longer than is normal for the instrument and session (for EUR/USD in London hours, a few hundred milliseconds of silence is already unusual), stop using it until fresh ticks arrive. Also stop after a reconnect until the first full update.
  • Spike filter. Ignore a tick that jumps far beyond what other sources or the recent volatility allow. A single bad print can look like a 20-pip opportunity.
  • Crossed or locked quotes. A bid at or above the ask is a data problem, not a market. Skip it.
  • Offset normalisation. Track the usual difference between reference and target and trade only deviations from that baseline, otherwise a broker’s permanent markup reads as a permanent signal.
  • Session edges. Rollover, weekend opens and thin holiday hours produce wide, jumpy quotes on every feed. Many traders simply disable signals in those windows.

One source or several? The aggregation trade-off

Combining several reference sources (for example a median of three) makes the price more robust: one frozen or spiking source can no longer fool you. The cost is speed. A median or average has to wait for enough sources to report, so the combined price inherits part of the delay of the slower members.

A practical compromise used by many setups is “first mover with confirmation”: act on the fastest source, but only if the move is consistent with at least one other source within a short tolerance, and never if the fastest source is flagged stale. You keep most of the lead and lose most of the false signals.

Matching the feed to the target broker

  • Symbol mapping. EURUSD, EURUSD.pro, EUR/USD and EURUSDm must point to the same instrument, with the same contract and digits.
  • Bid, ask or mid. Compare like with like. If your target widens spreads in fast markets, use its bid for sell signals and its ask for buy signals, not a mid that hides the spread.
  • Thresholds per symbol and session. A 0.4-pip gap on EUR/USD in London is meaningful; the same gap on an exotic at rollover is noise.
  • Broker reaction. A lead you can measure is not automatically a lead you can trade: execution delays, last look and requotes all eat the window. Picking the target matters as much as picking the feed, which is why we keep a separate guide on como escolher uma corretora para arbitragem.

Do you always need a fast feed?

No. Classic one-leg latency arbitrage depends on it completely. Two-broker arbitragem de hedge works differently: it compares the quotes of two brokers and opens opposite positions on both, so the “reference” is simply the other broker. Feed quality still matters (stale-quote filters apply to both legs), but you do not need a separate premium data source to start.

Reference feed checklist

  1. Choose candidate sources that sit upstream of your target broker’s prices.
  2. Deliver them to a server close to the target broker, and timestamp every tick locally.
  3. Record at least several trading days, including news, and measure lead, jitter and “no follow” rate per symbol.
  4. Compare the median lead with your own reaction-plus-execution time.
  5. Add stale, spike, crossed-quote and offset filters before any signal logic.
  6. Re-measure monthly: leads drift as brokers and providers change their infrastructure.

Perguntas frequentes

O que é um feed de preços de referência no contexto do arbitrage de latência?

It is a price stream used as a measuring stick: it usually shows market moves earlier than the broker you trade on. The arbitrage software compares it with the broker’s quotes and trades on the broker while the broker still shows the old price.

O feed de dados mais rápido é sempre o melhor?

Não. A melhor oferta de dados é aquela que apresenta uma vantagem estável e mensurável em relação ao seu corretor específico, proveniente do seu servidor específico, e que raramente fica congelada ou apresenta picos de atividade. Uma oferta de dados ligeiramente mais lenta, mas constante e representativa, geralmente produz menos sinais falsos e melhores resultados líquidos.

Como posso medir o prazo de entrega de um feed de dados?

Registre a referência e o feed do corretor no mesmo servidor com timestamps locais, detecte movimentos significativos de preço na referência, encontre o momento em que o corretor atinge o mesmo nível e analise a distribuição das diferenças: proporção de movimentos liderados, mediana, percentil 90 e movimentos que nunca seguiram o mesmo padrão.

O que acontece se o feed de referência ficar congelado?

Sem proteção, o último preço permanece congelado enquanto o corretor continua a se mover, e o software vê uma diferença aparentemente grande que é completamente falsa. A detecção de estagnação, que pausa os sinais quando a transmissão deixa de ser atualizada, evita isso.

Posso usar outro corretor de varejo como fonte de informações rápidas?

Sim, muitos traders fazem isso e isso pode ser um problema para os corretores mais lentos. No entanto, a liderança é relativa, então é preciso medir isso regularmente; ela pode desaparecer quando um dos corretores mudar os fornecedores de liquidez ou a infraestrutura.

A arbitragem de criptomoedas também precisa de um feed de referência?

Cross-exchange crypto arbitrage compares exchange order books directly, so the “reference” is usually the most liquid exchange for that coin. The same rules apply: measure the lead from your server, handle WebSocket reconnects and sequence gaps, and treat stale books as no data.

Sobre o autor

Ou junte-se à nossa comunidade no Telegram
Junte-se a @hftarbitrage
Comments
0 Comments
Comments will be displayed after approval by the administrator