Skip to main content

Module dispatch

Module dispatch 

Source
Expand description

WebSocket dispatch state for tracked/external order routing.

Orders submitted through this client have their identity registered in WsDispatchState. When user data stream messages arrive, the dispatch function checks for a registered identity:

  • Tracked orders produce proper order events (OrderAccepted, OrderFilled, etc.).
  • Untracked orders fall back to execution reports for reconciliation.

Structs§

OrderIdentity
Order identity context stored at submission time.
PendingRequest
A pending WS API request awaiting a response.
WsDispatchState
Tracks order lifecycle state for dispatch routing.

Enums§

PendingOperation
The type of operation a pending WS API request represents.

Functions§

ensure_accepted_emitted
Synthesizes and emits OrderAccepted if one has not yet been emitted.