Skip to main content

Module dispatch

Module dispatch 

Source
Expand description

WebSocket dispatch state for tracked/external order routing.

Orders submitted through this client and active local orders restored from the cache have their identity registered in WsDispatchState. User data stream messages route by registered identity:

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

Structs§

OrderIdentity
Order identity context registered on submission or restored for an active local order.
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.