Skip to main content

dispatch_fill_report

Function dispatch_fill_report 

Source
pub fn dispatch_fill_report(
    report: &FillReport,
    state: &WsDispatchState,
    emitter: &ExecutionEventEmitter,
    ts_init: UnixNanos,
) -> DispatchOutcome
Expand description

Dispatches a [FillReport] using the two-tier routing contract.

Returns DispatchOutcome::Tracked when the fill has been emitted as an OrderFilled event (or skipped via trade dedup), External when the caller should forward the fill via [ExecutionEventEmitter::send_fill_report], or Skip when the fill is a replay for an already-terminal order and must be dropped.