A C++ component for serializing and deserializing limit order book snapshots to and from a compact binary file format. Part of the personal DeepAlpha trading/quant project series.
Tech stack: C++17 · CMake · custom binary serialization
- Models a limit order book — bids/asks with price levels, volumes, and depth.
- Defines a versioned binary on-disk format (metadata + header + entries) with explicit, size-typed fields for forward compatibility.
- Provides a writer to persist snapshots and a reader to load them back, with dedicated exception types for malformed or unreadable files.
├── main.cpp
├── order_book/ OrderBook.{h,cpp}, OrderBookExceptions.h # core model + format
├── order_book_writer/ OrderBookWriter.{h,cpp} # serialize snapshots
└── order_book_reader/ OrderBookReader.{h,cpp} # deserialize snapshots
cmake -S . -B build
cmake --build build
./build/orderbookPart of the DeepAlpha series — focused on low-level, performance-minded binary serialization of market data in modern C++.