Practitioner course in high-frequency trading
Limit Order Books
How the limit order book works and what it reveals: matching rules, queue priority, depth and liquidity, order flow imbalance, and the short-term price dynamics that execution and market-making strategies depend on.
The limit order book is the market, as an electronic exchange sees it: every resting order to buy or sell, sorted by price and arrival time. Execution algorithms, market makers and high-frequency strategies all trade against it, and their results depend on details most traders never look at.
How does a limit order book work?
Traders post limit orders at the prices they are willing to trade. Buy orders form the bid side, sell orders the ask side. A market order, or a limit order that crosses the spread, executes against the best resting orders, and on most equity exchanges orders at the same price fill in the order they arrived. That priority rule is why queue position has a value.
What is order flow imbalance?
The difference between buying and selling pressure at the top of the book over a short interval, counting new orders, cancellations and trades. Research by Cont, Kukanov and Stoikov found it explains a large share of short-term price changes in US equities. You will compute it and test it on real data.
Who is this course for?
Traders and developers who work on execution or short-horizon strategies, and anyone starting the high-frequency trading track. It counts toward the Certificate in High-Frequency Trading.
What you will be able to do
- Reconstruct a limit order book from message-level data.
- Explain price-time priority, pro-rata matching and their effect on strategy.
- Measure spread, depth, resilience and queue position.
- Compute order flow imbalance and test its link to short-term price moves.
- Describe the main microstructure models of the spread.
Syllabus, module by module
The order book
Limit and market orders, bids, asks, levels and the matching engine.
Matching rules
Price-time priority, pro-rata, hidden and iceberg orders, and auctions.
Message data
Add, cancel, modify and execute messages, and rebuilding the book from them.
Measuring liquidity
Quoted and effective spread, depth, resilience and intraday patterns.
Queue position
Where your order sits, how fast the queue moves, and the probability of a fill.
Order flow and price
Order flow imbalance, trade signs, and the short-term price impact of trades.
Spread models
Inventory, adverse selection and order processing costs; Glosten-Milgrom and Kyle in outline.
Project lab
Supervised work on the assessed order book project.
How the certificate is earned
An assessed project: you rebuild a book from message data, measure its liquidity over a trading day, test one short-horizon predictor, and submit the code with a report. On a pass you receive the Course certificate in Limit Order Books, issued by the Institute with a verification code. Read how certification works.
Before you start
Working Python with pandas, and statistics to regression level.
This course counts toward
Questions applicants ask
What is an order book in trading?
The list of all resting buy and sell limit orders for an instrument, arranged by price. The best bid and best ask are the top of the book; the orders behind them are its depth.
Can order book data predict price movements?
Over very short horizons, seconds or less, order flow imbalance has measurable predictive power in many markets. Over longer horizons the effect fades quickly. The course measures both.
Where does the order book data come from?
Exercises use publicly available message-level sample data. The course explains the commercial sources used in industry.