Skip to main content

Module dispatch

Module dispatch 

Source
Expand description

WebSocket message dispatch for the dYdX execution client.

Routes incoming subaccount channel data 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§

DydxWsDispatchState
Shared state for cross-stream event deduplication in the execution dispatch loop.
OrderIdentity
Order identity context stored at submission time, used by the WS dispatch task to produce proper order events without Cache access.

Functions§

fill_report_to_order_filled
Converts a [FillReport] to an [OrderFilled] event for tracked orders.