How stratcraftsai/nexusfix works
NexusFIX is a header-only C++ FIX engine for low-latency trading. Its principal workflow is to accept or initiate a FIX connection, manage session state and sequencing, parse inbound messages into field views, and expose typed FIX messages; outbound messages are assembled and transported. The repository also advertises SBE codecs, multiple FIX versions, optimized I/O, and low-latency memory and logging facilities. The excerpts show session message construction and parser structure; connections not directly evidenced in sampled source are omitted or marked unverified.
Main entry points: messages Typed FIX messages · session_manager.hpp Session manager · runtime_parser.hpp Runtime parser · transport Network transports
Components 20
Session and transport
- FIX endpoints
include/nexusfix/engine - Network transports
include/nexusfix/transport - io_uring transport
include/nexusfix/transport/io_uring_transport.hpp - Session manager
include/nexusfix/session/session_manager.hpp - Session state
include/nexusfix/session/state.hpp - Sequence tracking
include/nexusfix/session/sequence.hpp - Message store
include/nexusfix/store
FIX protocol
- Typed FIX messages
include/nexusfix/messages - Message interface
include/nexusfix/interfaces/i_message.hpp - Tags and field types
include/nexusfix/types
Parsing and encoding
- Runtime parser
include/nexusfix/parser/runtime_parser.hpp - Zero-copy field views
include/nexusfix/parser/field_view.hpp - Structural index
include/nexusfix/parser/structural_index.hpp - SIMD scanner
include/nexusfix/parser/simd_scanner.hpp - FIX serializer
include/nexusfix/serializer/constexpr_serializer.hpp - SBE codecs
include/nexusfix/sbe
Performance support
- Memory primitives
include/nexusfix/memory - Deferred processing
include/nexusfix/util/deferred_processor.hpp
Other components
- Trading application
- FIX counterparty
Connections 18
- Trading application → FIX endpoints: uses endpoints
- FIX endpoints → Network transports: uses transport
- FIX counterparty → Network transports: exchanges FIX
- io_uring transport → Network transports: specializes
include/nexusfix/transport/io_uring_transport.hpp - io_uring transport → Session manager: uses coroutines
include/nexusfix/transport/io_uring_transport.hpp - Session manager → Session state: uses state
include/nexusfix/session/session_manager.hpp - Session manager → Sequence tracking: uses sequencing
include/nexusfix/session/session_manager.hpp - Session manager → Message store: uses store
include/nexusfix/session/session_manager.hpp - Session manager → Typed FIX messages: builds session messages
include/nexusfix/session/session_manager.hpp - Typed FIX messages → Message interface: implements contract
include/nexusfix/messages/fixt11/session.hpp - Typed FIX messages → Runtime parser: parses fields
include/nexusfix/messages/fixt11/session.hpp - Runtime parser → Zero-copy field views: indexes fields
include/nexusfix/parser/runtime_parser.hpp - Runtime parser → SIMD scanner: uses scanner
include/nexusfix/parser/runtime_parser.hpp - Runtime parser → Structural index: may use index
- FIX serializer → Typed FIX messages: encodes messages
- SBE codecs → Typed FIX messages: provides binary codecs
- Typed FIX messages → Tags and field types: uses field definitions
include/nexusfix/messages/fixt11/session.hpp - Memory primitives → Deferred processing: backs queueing
include/nexusfix/util/deferred_processor.hpp