Every Quant

Latency

Short answer

Latency is the delay between an event in the market and a trader's response to it, including the time to receive data, decide and send an order to the exchange. In fast markets, lower latency lets a trader react before others.

Every step in the trading chain takes time: market data travels from the exchange, software processes it, an order travels back and the exchange matches it. Each delay is small, but in electronic markets prices can change many times in a brief instant. A trader with slower systems may find that quotes have already moved, or that a resting order is filled by faster traders just after news.

How it is used in strategy design and testing

In strategy design, latency decides which ideas are feasible. Quoting strategies in fast markets depend on updating or cancelling orders before faster traders trade against them. Slower strategies, which hold positions longer, are less sensitive but still face delays between decision and execution. Designers match the strategy's horizon to the latency they can achieve, rather than assuming instant execution.

In testing, latency is a common source of false results. A backtest that trades at the price seen when a decision was made ignores the time needed to act. Testers add realistic delays, simulate the queue and price changes during the delay, and check how sensitive results are to a slightly slower response. A result that fades with a small added delay is fragile.

Common mistakes

  • Assuming no delay. Instant execution at observed prices overstates results.
  • Ignoring data timestamps. Timestamps from different sources may not be in sync.
  • Racing on a slow setup. Competing on speed without the infrastructure leads to adverse fills.
  • Forgetting cancellation delay. Stale quotes can be filled before a cancel arrives.

Where the term comes from

Budish, Cramton and Shim studied the race among fast traders and argued that continuous trading creates a contest over tiny speed advantages.

Education only. Not investment advice.

Questions people ask

What is latency in trading?

It is the time between a market event and a trader's response, including data, decision and order travel time.

Why does latency matter?

In fast markets prices change quickly. Slower traders may trade at stale prices or have their quotes filled just before adverse moves.

Does latency matter for long-term investors?

Much less. For slow strategies, costs and decision quality matter more than tiny delays, though execution delays still add slippage.

How do backtests handle latency?

Good tests add a realistic delay between decision and fill, and check whether results survive slower response times.

Papers

Written and checked by the Every Quant research team · Updated . How we write and check entries: methods.