Practitioner course in high-frequency trading
Order Books, Execution Algorithms and Trading Costs
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. It also teaches VWAP and TWAP execution algorithms, transaction cost analysis and smart order routing across venues.
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.
What does a VWAP algorithm do?
A VWAP algorithm buys or sells a large order in slices sized to the market’s usual volume pattern, aiming to match the volume-weighted average price over the period. It is one of the most widely used execution tools on equity desks, and the simplest point of entry into the problem of optimal execution.
It forecasts how volume will be distributed through the day, usually from historical averages, then schedules child orders to follow that distribution. If the market usually trades a tenth of its daily volume in the first half hour, the algorithm aims to do a tenth of the order then. Done well, the average fill price is close to the market’s VWAP.
Why do costs matter so much for systematic strategies?
Transaction cost analysis measures what trading really costs. Commissions are the small part; the spread, market impact and the delay between decision and fill are often larger, and they decide whether a strategy that worked on paper earns money. This course teaches how desks measure those costs and how to design strategies that survive them.
Because a strategy trades the same way thousands of times, and a few basis points lost on each trade add up to the whole edge. Many published strategies vanish once realistic costs are counted. The course builds a cost model and applies it to strategies from the rest of the catalog.
Why do markets need smart order routers?
Smart order routing exists because the same share can trade in many places at once. In the United States, equities trade across more than a dozen exchanges and a larger number of off-exchange venues, each with its own fees, rules and participants. Deciding where to send an order is an optimization problem, and this course treats it as one.
Since rules such as Regulation NMS in the United States and MiFID in Europe opened markets to competing venues, liquidity for a single stock is spread across many of them. A broker owes clients best execution. A router has to find the liquidity, respect price protection rules, and avoid venues where fills tend to come just before the price moves against you.
Who is this course for?
Traders and developers who work on execution or short-horizon strategies, and anyone starting the high-frequency trading track.
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.
- Build VWAP and TWAP schedules from historical volume profiles.
- Measure implementation shortfall and break it into spread, impact, timing and opportunity costs.
- Describe how equity markets fragmented and what best-execution rules require.
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.
The execution problem
Parent and child orders, urgency, and the costs of trading too fast or too slow.
What trading costs
Commissions, fees, the spread, market impact, delay and missed trades.
Fragmented markets
Exchanges, alternative trading systems, dark pools and internalizers; Reg NMS and MiFID II in outline.
What every course contains
Every paid course comes with the first seven and the certificate, whichever level it sits at. The proctored exam and the credential come when the course is taken as part of a Certificate, Diploma or Fellowship. Everything is self-paced: the material is yours to study in any order, at any hour, for the whole of the license.
- Workbooks. Written to train the thinking patterns and the important concepts of the course, with worked problems and the reasoning behind each answer, so that you learn to think the way the subject is thought.
- Audio edition. Focused, well-presented recordings with explainers and examples of the material, made to be interesting, relevant and entertaining, so that the general subject can be learned away from the desk.
- Notes. Pre-produced notes with every fact the course relies on, written out in full, so that nothing has to be transcribed from the films or the audio.
- Cheat sheet. One sheet with every important learning concept of the course on it, to keep beside you during the work and to revise from before the exam.
- Named sources. Every fact in the notes names its source, the paper, the book or the dataset, for anyone who wants to dig in further.
- Explainer films. Focused films, in the style of the sample films on the catalog page, that walk through the most difficult concepts of the course with visual explanations of a high standard.
- Transcript. A full transcript of every film and every audio recording, searchable and quotable.
- Proctored exam. Taken as part of a Certificate, Diploma or Fellowship, the course ends in a proctored multiple-choice questionnaire, with a pass mark of 60% and three retakes included. A course taken on its own is assessed by its coursework and has no exam.
- Verifiable certificate. A certificate of completion that a third party can verify: an employer sends the code on it to the credentials office and receives written confirmation of the course, the date and the result.
- Credential of the program. The Certificate, Diploma or Fellowship of the program, track or path the course belongs to, awarded when every course in it is passed. Which one depends on the program you choose.
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 Order Books, Execution Algorithms and Trading Costs, issued by the Institute with a verification code. A course taken as part of a Certificate, Diploma or Fellowship ends in a proctored online exam with a pass mark of 60%. The fee includes three retakes; each attempt after that carries a reduced proctored exam fee. A course taken on its own is assessed by its coursework and has no exam. Read how certification works.
Before you start
This course assumes the material of the courses below, or the same knowledge gained elsewhere.
This course counts toward
- Certificate in High-Frequency Trading and Market MicrostructureFour courses and a capstone on how orders meet: the limit order book, execution algorithms and their costs, venue routing, market making and the C++ systems that run them.
- Certificate in Statistical ArbitrageSeven courses and a capstone on market-neutral trading: time series foundations, pairs and baskets, cointegration, regimes, costs and the validation that keeps spread strategies honest.
- Professional Diploma in Algorithmic TradingThe top credential on the practitioner path. Twenty-one courses and an 80-hour capstone covering everything between the mathematics and a book you could defend to a risk committee.
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.
What is the difference between VWAP and TWAP?
TWAP spreads an order evenly over time. VWAP spreads it in proportion to expected trading volume, so it trades more when the market is busier, typically near the open and close. VWAP is also a benchmark: the average price of all trading in the period, weighted by volume.
What is transaction cost analysis?
It is the measurement of what trading actually cost against what it would have cost at a fair benchmark price. It covers explicit fees and the hidden costs of the spread, market impact and delay.
What is smart order routing?
Software that decides where to send each part of an order when the same instrument trades on several venues, taking into account price, size available, fees, fill probability and the risk of trading against better-informed participants.