How tharun-maheswararao/itch_feed_handler works
This is a C++ Nasdaq TotalView-ITCH 5.0 feed-replay and order-book benchmarking tool. Its main workflow maps a feed file, parses ITCH messages, transfers decoded messages through a selectable queue, updates an order book, and reports latency and run statistics. Verification compares the optimized book with a golden model; optional live snapshots and synthetic-feed generation are additional capabilities. The graph follows documented and indexed references; unsampled implementation details are not inferred.
Main entry points: pipeline.hpp Replay pipeline · main.cpp Replay CLI · fast_book.hpp Fast book · golden_book.hpp Golden book
Components 20
Replay pipeline
- Replay CLI
src/main.cpp - Mapped feed
include/fh/parser/mapped_file.hpp - ITCH parser
include/fh/parser/parser.hpp - Replay pipeline
include/fh/pipeline.hpp
Order books
- Fast book
include/fh/book/fast_book.hpp - Golden book
include/fh/book/golden_book.hpp - Book model types
include/fh/book/book_common.hpp - Book comparison
include/fh/book/compare.hpp
Metrics and view
- Latency clock
include/fh/stats/clock.hpp - Latency histogram
include/fh/stats/histogram.hpp - Run reports
src/report.cpp - System information
src/sysinfo.cpp - Book snapshot
include/fh/view/snapshot.hpp - Snapshot synchronization
include/fh/view/seqlock.hpp - Live book view
src/live_view.cpp
Feed and queue support
- Queue selection
include/fh/queue/queue_kinds.hpp - SPSC ring
include/fh/queue/spsc_queue.hpp - Decoded message
include/fh/parser/message.hpp - Synthetic feed writer
include/fh/testing/itch_writer.hpp
Other components
- Operator
Connections 24
- Operator → Replay CLI: runs commands
README.md - Replay CLI → Mapped feed: maps feed
src/main.cpp - Replay CLI → Replay pipeline: runs replay
src/main.cpp - Replay pipeline → ITCH parser: parses messages
include/fh/pipeline.hpp - ITCH parser → Decoded message: decodes to
include/fh/parser/parser.hpp - Replay pipeline → Queue selection: selects queue
- Queue selection → SPSC ring: dispatches to
include/fh/queue/queue_kinds.hpp - Replay pipeline → SPSC ring: transfers messages
include/fh/pipeline.hpp - Replay pipeline → Fast book: updates book
include/fh/pipeline.hpp - Replay pipeline → Golden book: runs reference
- Replay CLI → Fast book: selects book
src/main.cpp - Replay CLI → Golden book: runs verification
src/main.cpp - Replay CLI → Book comparison: compares books
src/main.cpp - Fast book → Book model types: uses shared types
include/fh/book/fast_book.hpp - Golden book → Book model types: uses shared types
include/fh/book/golden_book.hpp - Replay CLI → Synthetic feed writer: generates feed
src/main.cpp - Replay pipeline → Latency clock: stamps messages
include/fh/pipeline.hpp - Replay pipeline → Latency histogram: records latency
include/fh/pipeline.hpp - Replay CLI → Run reports: writes results
src/main.cpp - Run reports → System information: reads system data
src/report.cpp - Replay pipeline → Book snapshot: builds snapshot
include/fh/pipeline.hpp - Replay pipeline → Snapshot synchronization: publishes snapshot
include/fh/pipeline.hpp - Live book view → Snapshot synchronization: reads snapshots
src/live_view.cpp - Live book view → Book snapshot: renders book data
src/live_view.cpp