Skip to main content

generate_reconciliation_order_events

Function generate_reconciliation_order_events 

Source
pub fn generate_reconciliation_order_events(
    order: &OrderAny,
    report: &OrderStatusReport,
    instrument: Option<&InstrumentAny>,
    ts_now: UnixNanos,
) -> Vec<OrderEventAny>
Expand description

Generates reconciliation events for a live order status report.

If a venue report advances a locally submitted order beyond Submitted, this synthesizes the missing Accepted event first so downstream order state transitions stay valid.