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§
- Order
Identity - Order identity context stored at submission time.
- Pending
Request - A pending WS API request awaiting a response.
- WsDispatch
State - Tracks order lifecycle state for dispatch routing.
Enums§
- Pending
Operation - 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.