A replay of the hft-orderbook engine reconstructing a synthetic ITCH session.
Pass ?ws=ws://host:port to watch a local wsbook live. ·
source ↗
This page is a view of the hft-orderbook C++ engine reconstructing a NASDAQ TotalView-ITCH 5.0 limit-order book. ITCH is the exchange's order-by-order market-data feed: every add, execute, cancel, delete and replace carries an 8-byte order reference, and the exchange has already matched. So the engine is a reconstructor, not a matching engine: it applies each message to an O(1) order-reference map to rebuild the resting book, then derives signals from it.
The decode, reconstruction, metrics and streaming all run in C++ (a lock-free
pipeline, sub-microsecond per message); the browser is only the view. The session shown here is
synthetic - ITCH messages produced by the repo's gencap generator, run through
the real engine, captured with wsbook --dump and replayed in a loop (real BinaryFILE
captures are exercised in the benchmark suite). Append ?ws=ws://host:port to drive
this same view live from a local wsbook over a dependency-free WebSocket
(hand-rolled SHA-1 + RFC-6455).