Skip to main content

Module dispatch

Module dispatch 

Source
Expand description

WebSocket message dispatch for the BitMEX execution client.

Routes incoming BitmexWsMessage 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§

OrderIdentity
Order identity context stored at submission time, used by the WS dispatch task to produce proper order events without Cache access.
WsDispatchState
Shared state for WS dispatch event deduplication and order tracking.

Functions§

dispatch_ws_message
Top-level dispatch for all BitMEX WebSocket messages on the execution stream.