pub fn dispatch_trades_payload(
data: DeriveTradesSubscriptionData,
emitter: &ExecutionEventEmitter,
account_id: AccountId,
clock: &'static AtomicTime,
dispatch_state: &WsDispatchState,
)Expand description
Dispatches a parsed {subaccount_id}.trades payload to the execution event
emitter.
Deduplicates by trade id, then emits a tracked fill when the trade’s client
order id resolves to a registered identity in dispatch_state, and forwards
a raw fill report otherwise.