High-Frequency Trading Intermediate
High-Frequency Trading Intermediate
Lesson Promise
By the end of this lesson, you will understand how exchange matching engines pair orders using price-time priority, how market data feeds broadcast updates in binary protocols, and how feed handlers parse data at line rate.
Narration Draft
"An exchange's matching engine is a data structure — typically a sorted map of price levels, each with a FIFO queue of orders. When a market order arrives, it sweeps through price levels. The engineering challenge is doing this in under a microsecond per message. Market data feeds broadcast every book change using compact binary protocols like ITCH and OUCH, and feed handlers must parse every byte as fast as it arrives."
Visual Sequence
- Scene 1 — Order book sweep: market order consuming multiple price levels
- Scene 2 — Matching engine architecture: lock-free queues, memory pools, skip lists
- Scene 3 — ITCH message format: binary protocol walkthrough
- Scene 4 — Total latency breakdown from order entry to confirmation
Companion Material
- Article: The Matching Engine
- Article: Market Data Feeds
- Trace: Trace a Market Order
- Diagram: Order Book State
- Practice: Match Orders from a Feed
- Learning Path: HFT Intermediate
Related articles
Adversarial Trading and Market Surveillance
How exchanges detect manipulative trading patterns like spoofing and layering, and how traders adapt to surveillance systems.
Colocation and Hardware Acceleration
How trading firms colocate servers at exchanges, use FPGAs and kernel bypass to shave microseconds off latency.
Market Data Feeds and Parsers
How exchanges broadcast real-time market data, the FIX and ITCH protocols, and how feed handlers parse data at line rate.
More in High-Frequency Trading
High-Frequency Trading Advanced
Colocation, FPGA acceleration, and the adversarial arms race between trading algorithms and market surveillance.
DetailsHigh-Frequency Trading Foundations
A beginner walkthrough of financial markets, order books, market order execution, and why latency matters.
DetailsNew lessons by email
Get new articles and notes on the systems behind everyday software.
One technical dispatch per week. No noise.
Not started
Sign in to save your learning progress.