6.5.4HFT & Advanced Concepts

Learn about colocation and direct market access

1,657 words8 min readdifficulty · medium

WHAT are these two things?


WHY does latency matter — derive the edge from scratch

Suppose a favourable price appears. Two traders react. Whoever's order reaches the matching engine first gets filled at the good price; the loser gets a worse price or nothing.

Step 1 — model total delay. Break the round trip into parts:

Ttotal=tdecide+tpropagation+tbroker+tqueueT_{\text{total}} = t_{\text{decide}} + t_{\text{propagation}} + t_{\text{broker}} + t_{\text{queue}}

Why this step? Every real delay must fall into one of these buckets, so summing them gives the honest total.

Step 2 — propagation delay from distance. Signal speed in fiber: v=cn3×1081.5=2×108 m/sv = \frac{c}{n} \approx \frac{3\times10^8}{1.5} = 2\times10^8 \text{ m/s}

Why? Fiber has refractive index n1.5n\approx1.5, so light is slower inside glass than in vacuum. Then one-way time over distance dd:

tpropagation=dvt_{\text{propagation}} = \frac{d}{v}

Step 3 — see the colocation gain. Moving your server from d1d_1 (far) to d2d_2 (colocated) saves:

Δt=d1d2v\Delta t = \frac{d_1 - d_2}{v}

Why this matters: even 100 km of distance is 100,0002×108=500 μs,\frac{100{,}000}{2\times10^8} = 500\ \mu s, a lifetime in HFT where edges are measured in microseconds (μs\mu s) and even nanoseconds.

Figure — Learn about colocation and direct market access

HOW it works, end to end

  1. HFT firm rents a colocation rack inside the exchange building.
  2. Firm uses DMA (often sponsored access, where it uses the broker's membership/exchange ID) so its algorithm's orders go straight onto the order book.
  3. Orders travel a few metres of cross-connect cable → matching engine → filled first → profit from the tiny time advantage (market making spread, arbitrage, etc.).

Common mistakes (steel-manned)


Flashcards

What is colocation in HFT?
Renting server rack space inside/next to the exchange's data center to minimise propagation (distance) latency to the matching engine.
What is Direct Market Access (DMA)?
Sending orders directly to the exchange order book via the broker's/exchange's infrastructure without a human dealer re-keying them.
Which delay does colocation attack vs DMA?
Colocation attacks propagation/distance delay; DMA attacks human/intermediation processing delay.
Speed of a signal in optical fiber?
About 2×1082\times10^8 m/s, from v=c/nv=c/n with n1.5n\approx1.5.
Formula for propagation latency over distance d?
tprop=d/vt_{\text{prop}}=d/v.
Time saved moving from distance d1d_1 to d2d_2?
Δt=(d1d2)/v\Delta t=(d_1-d_2)/v.
Why do exchanges give equal cable lengths in colo?
To keep colocation fair — advantage is being in colo, not which specific rack.
Why do firms use microwave links between cities?
Air has n1n\approx1, so signals travel closer to cc (faster than fiber's slower c/1.5c/1.5).
Can you be colocated but still slow?
Yes — decision time, queueing, and processing latency remain; colo only cuts distance latency.
What is "sponsored access"?
DMA where a firm uses a broker's exchange membership to place orders directly under its own algo.

Recall Feynman: explain to a 12-year-old

Imagine everyone shouting orders to a shopkeeper. The person standing right next to the shop is heard first — that's colocation (sitting super close to the exchange). Now imagine that instead of whispering to a friend who then tells the shopkeeper, you speak straight to the shopkeeper — that's DMA (no middleman). If you do both, your order reaches the shop before anyone else's, so you grab the good deal first. In real markets, "close" and "no middleman" can mean winning by a few millionths of a second — and that tiny bit is worth a lot of money.


Connections

  • HFT & Advanced Concepts
  • Latency and Tick-to-Trade
  • Order Book and Matching Engine
  • Market Making Strategies
  • Arbitrage
  • Speed of Light in Fiber vs Microwave Links
  • Sponsored Access and Exchange Membership

Concept Map

reduced by

reduced by

kills

kills

determines

sets

shrinks

wins fill first

measured in microseconds

Latency = key resource

Direct Market Access

Colocation

Processing/human delay

Propagation delay

Shortest tick-to-trade

HFT speed edge

Distance d to matching engine

Signal speed v = c/n

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, HFT ki puri duniya ek race hai — aur race sabse tez trader jeetta hai, sabse smart nahi. Jab market me koi accha price aata hai, jiska order pehle exchange ke matching engine tak pahunchta hai, wahi bandaa acche rate pe fill hota hai. Signal fiber cable me light ki speed se chalta hai, lekin fiber me light thodi slow hoti hai (around 2×1082\times10^8 m/s), isliye distance jitna kam, time utna kam. Yahi baat hai colocation ki: apna trading server exchange ke building ke andar hi rakh do, sirf kuch metre door — taaki propagation delay minimum ho jaye.

Direct Market Access (DMA) alag cheez hai. Traditional tarike me tumhara order pehle broker ke dealer ke paas jaata hai, wo aadmi use padhta hai, phir exchange terminal me type karta hai — isme seconds lag jaate hain. DMA me tumhara algo seedha exchange ke order book pe order daalta hai, bina kisi human middleman ke — matlab microseconds me kaam. Yaad rakho: colocation = paas hona (distance ka delay katta hai), DMA = beech ka aadmi hatana (human ka delay katta hai). Dono alag problem solve karte hain.

Formula simple hai: t=d/vt = d/v. 100 km ka matlab 500 μs500\ \mu s ka delay — HFT me ye ek yug jaisa hai! Isiliye badi firms dono use karti hain: colo bhi lete hain aur DMA bhi. Ek common galti — mat sochna ki colocation se latency zero ho jaati hai; decision time aur queue time to phir bhi rehta hai. Aur ek aur mazedaar baat: fiber slow hoti hai isliye kuch firms sheheron ke beech microwave links use karti hain, kyunki hawa me light almost cc ki speed pe chalti hai. Bas — close raho, middleman hatao, aur race jeeto.

Test yourself — HFT & Advanced Concepts

Connections