C++ for Quant Finance
The language of pricing libraries and trading systems. Write, compile and test real C++20 in your browser: pricers, Monte Carlo, risk, an order book and low-latency statistics.
Module 16 · C++8 lessons~4.5 hours
0%0/8
What it uses
Programming basics from Module 0. The pricing lessons assume Black-Scholes and Monte Carlo from Modules 7 and 8, and the order book follows Module 14.
Where it leads
This is the language of production pricing libraries and trading systems, and of the coding rounds in quant developer interviews.
What you'll build
8 lessons, in the order they build on each other.
- 1C++ for quants: functions, types and moneyBeginnerCompile your first pricing functions and dodge the integer-division and precision traps.4 tasks5 checkpoint questions30 min
- 2Vectors and references: a returns pipelineBeginnerstd::vector, const references and O(n) loops for returns, volatility and drawdown.4 tasks5 checkpoint questions30 min
- 3Black-Scholes, Greeks and implied vol in C++IntermediateA production-style pricer: CDF from erfc, Greeks in one pass, and a safe Newton solver.3 tasks5 checkpoint questions35 min
- 4Classes and polymorphism: a payoff libraryIntermediateAbstract payoffs, virtual dispatch, unique_ptr books and a binomial pricer that prices any of them.3 tasks5 checkpoint questions35 min
- 5Monte Carlo pricing with <random>IntermediateSeeded engines, standard errors, antithetic variates and an Asian option.3 tasks5 checkpoint questions35 min
- 6STL algorithms for risk: VaR and expected shortfallIntermediatenth_element, partial_sort, lambdas and templates applied to a P&L vector.3 tasks5 checkpoint questions30 min
- 7Build a limit order bookAdvancedInteger ticks, std::map price levels, cancels by id and price-time matching.3 tasks5 checkpoint questions40 min
- 8Low-latency C++: streaming statisticsAdvancedWelford's algorithm, EWMA volatility and a fixed-size ring buffer with no allocation.3 tasks5 checkpoint questions35 min