VFOB
C++ order book, up to 98M updates a second. C++23, CMake. By Ayaan Afridi.
An order book that rebuilds a market order by order from exchange messages: add, execute, cancel, delete and replace.
- 84-87M operations a second on one core with synthetic data, and 44-98M on real Binance recordings, against a target of 10M.
- Every design decision was measured and written up, including the ideas that made it slower: memory pools, intrusive queues, custom hash tables, 4-ary heaps.
- Checked against a brute-force reference model with randomized differential tests.
- Header-only, with Python tools to record live Binance data and replay it.
Read the full VFOB write-up: design, results and benchmarks.
More
Ayaan Afridi's portfolio · Veyra · Pyngine · AHL API SDK · Koma