pub fn dispatch_ws_message(
message: OKXWsMessage,
emitter: &ExecutionEventEmitter,
state: &WsDispatchState,
account_id: AccountId,
account_type: AccountType,
instruments: &AtomicMap<Ustr, InstrumentAny>,
fee_cache: &mut FeeCache,
filled_qty_cache: &mut FilledQtyCache,
order_state_cache: &mut AHashMap<ClientOrderId, OrderStateSnapshot>,
clock: &AtomicTime,
)Expand description
Dispatches a WebSocket message with cross-stream deduplication.
Orders with a tracked identity, including submitted orders and registered
external limit orders, produce order events (OrderAccepted, OrderCanceled,
OrderFilled, etc.). Untracked orders produce execution reports for downstream
reconciliation.