Expand description
WebSocket message dispatch for the Bybit execution client.
Routes incoming BybitWsMessage variants to the appropriate parsing and
event emission paths. Tracked orders (submitted through this client) produce
proper order events; untracked orders fall back to execution reports for
downstream reconciliation.
Structs§
- Order
Identity - Order identity context stored at submission time, used by the WS dispatch task to produce proper order events without Cache access.
- Order
State Snapshot - Snapshot of an order’s price, quantity, and trigger price at last dispatch. Used to detect modifications when Bybit sends back an order with the same status but changed fields.
- WsDispatch
State
Enums§
- Pending
Operation - Tracks which type of WS request is pending for a given req_id.
Functions§
- dispatch_
ws_ message - Dispatches a WebSocket message with cross-stream deduplication.
Type Aliases§
- Pending
Request Data - Shared state for cross-stream event deduplication between the private and trade WebSocket dispatch loops.