Skip to content
This repository was archived by the owner on Jun 17, 2026. It is now read-only.

Latest commit

 

History

History
37 lines (27 loc) · 1.19 KB

README.md

File metadata and controls

37 lines (27 loc) · 1.19 KB

DeepAlpha — Order Book

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

What it does

  • 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.

Project structure

├── 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

Build & run

cmake -S . -B build
cmake --build build
./build/orderbook

Part of the DeepAlpha series — focused on low-level, performance-minded binary serialization of market data in modern C++.