Skip to main content

order_report

Function order_report 

Source
pub fn order_report(
    value: &Order,
    instrument: &BinaryOption,
    account_id: AccountId,
    cached: Option<&OrderAny>,
    ts_init: UnixNanos,
) -> Result<Option<OrderStatusReport>>
Expand description

Builds an order-status report from one venue order.

Returns Ok(None) when a canceled order has no cached quantity to preserve, or the cached order is not closed with the same last time and filled count.

ยงErrors

Returns an error if identity, direction, type, status, counts, prices, or timestamps are invalid.