Algorithmic and High-Frequency Trading (HFT)

Algorithmic Trading spans automated order execution, volume-weighted slicing, and cross-venue smart order routing designed to minimize market impact for institutional portfolios. High-Frequency Trading (HFT) operates at the microsecond and nanosecond frontier, where firms act as electronic liquidity providers, arbitrage deterministic discrepancies across fragmented exchanges, and manage microsecond queue priority.

This pillar is organised into ten topic folders (folder-per-topic), each a self-contained hub index.md with six sub-pages (from-zero intuition → mathematical ground truth → implementation → failure modes → advanced extensions). Follow them in the order below - each builds on the machinery of the ones before it.


Core HFT Topics

  1. Market Microstructure & Order Types: The market’s plumbing - limit vs market orders, hidden and iceberg orders, pegged orders, auction vs continuous trading, and maker-taker fee structures that shape every execution decision.
  2. Optimal Execution & Almgren–Chriss: Permanent vs temporary market impact, execution risk aversion, and the calculus-of-variations solution for optimal liquidation trajectories.
  3. Execution Algorithms: VWAP, TWAP, & POV: Institutional order slicing, intraday volume curves, implementation shortfall, and scheduling against volume profiles to track a benchmark.
  4. Queue Position & Fill Probability: Matching-engine priority rules (FIFO vs pro-rata), queue-reactive models, fill-probability estimation, and adverse selection at queue heads.
  5. Smart Order Routing & Fragmentation: Cross-venue fragmentation, NBBO and locked/crossed markets, SOR logic, fee-and-venue selection, and slicing a parent order across destinations.
  6. Execution Backtesting & Simulation: Transaction-cost analysis, market-impact and fill models, and realistic execution simulators that avoid the zero-fill fantasy.
  7. Colocation & Clock Synchronization: Proximity hosting, fibre vs microwave links, PTP/NTP time sync, and timestamp accuracy for latencies measured in nanoseconds.
  8. Hardware Acceleration & FPGA: Silicon tick-to-trade, wire-speed network parsing (Solarflare/DPDK), FPGA vs CPU vs GPU, and hardware-level trade validation.
  9. Low-Latency Systems Architecture: Kernel-bypass networking, CPU isolation, NUMA affinity, zero-allocation pipelines, and designing end-to-end systems for microsecond response.
  10. Market Microstructure Game Theory: Kyle’s auction and the Back continuous-time limit, Glosten–Milgrom as a sequential Bayesian game, predatory trading and multi-agent execution games - the equilibrium foundation under the models the other folders assume.

Reading Path (Zero to HFT)

Before this pillar (foundations): read Probability & Measure Theory · Numerical Methods first - see the Math Foundations hub for the full consumption order.

A guided route through the nine folders, in five stages.


The Latency & Scale Spectrum