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.
For orders with a tracked identity (submitted through this client), produces
proper order events (OrderAccepted, OrderCanceled, OrderFilled, etc.).
For untracked orders (external or pre-existing), falls back to execution
reports for downstream reconciliation.