Introduction to NexusTrader
mainNexusTrader is an open-source trading framework designed for execution reliability in live trading systems. It is specifically built to handle the uncertainties of exchange connectivity, such as delayed acknowledgements, retries, and reconnections.
Core Reliability Features
- Deterministic Order Execution: Tracks WebSocket order paths until an ACK is received. If an ACK timeout occurs, the system can trigger a REST confirmation to resolve uncertainty.
- Idempotent Submissions: Uses
client_oidandidempotency_keyto prevent duplicate order creation during retries. - Reconnect Reconciliation: Automatically resyncs balances, positions, and open orders after a private WebSocket reconnection, emitting a reconciliation diff to the strategy layer.
- Observable State: Provides explicit tracking of pending ACK states and publishes lifecycle events for failed orders.