TradeX
Year Long Project
CompSoc
Abstract
This project tries to implement a high-frequency trading (HFT) matching engine written in C++. The system is built around the principle of minimising latency at every layer: from order ingestion in the Order Management System (OMS) to trade execution and publication via a lock-free shared memory ring buffer. The engine supports four order types: Limit, Market, Stop Loss, and Iceberg and routes symbols across independent processor groups, each running on a dedicated thread with its own set of order books. Key design choices include price-level array indexing, a custom slab memory pool and a flat hash-based symbol lookup table. The result is a system capable of processing millions of trades per second with sub-microsecond per-operation latency on commodity hardware.
Abstract
This project tries to implement a high-frequency trading (HFT) matching engine written in C++. The system is built around the principle of minimising latency at every layer: from order ingestion in the Order Management System (OMS) to trade execution and publication via a lock-free shared memory ring buffer. The engine supports four order types: Limit, Market, Stop Loss, and Iceberg and routes symbols across independent processor groups, each running on a dedicated thread with its own set of order books. Key design choices include price-level array indexing, a custom slab memory pool and a flat hash-based symbol lookup table. The result is a system capable of processing millions of trades per second with sub-microsecond per-operation latency on commodity hardware.
Report Information
Team Members
Team Members
Report Details
Created: April 6, 2026, 9:17 p.m.
Approved by: Sanjay S Bhat [CompSoc]
Approval date: None
Report Details
Created: April 6, 2026, 9:17 p.m.
Approved by: Sanjay S Bhat [CompSoc]
Approval date: None