Skip to main content

Module dispatch

Module dispatch 

Source
Expand description

WebSocket message dispatch for the OKX execution client.

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

AlgoCancelContext
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 cross-stream event deduplication between the private and business WebSocket dispatch loops.

Functions§

dispatch_execution_reports
Dispatches execution reports with cross-stream deduplication.
dispatch_ws_message
Dispatches a WebSocket message with cross-stream deduplication.
emit_algo_cancel_rejections
emit_batch_cancel_failure