Skip to main content

fill_report_to_order_filled

Function fill_report_to_order_filled 

Source
pub fn fill_report_to_order_filled(
    report: &FillReport,
    trader_id: TraderId,
    identity: &OrderIdentity,
    quote_currency: Currency,
) -> OrderFilled
Expand description

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

Uses the stored OrderIdentity to supply order_side and order_type fields that are not available in the report.

ยงPanics

Panics if report.client_order_id is None.