Skip to main content

parse_order_status_report

Function parse_order_status_report 

Source
pub fn parse_order_status_report(
    order: &PolymarketOpenOrder,
    instrument_id: InstrumentId,
    account_id: AccountId,
    client_order_id: Option<ClientOrderId>,
    price_precision: u8,
    size_precision: u8,
    ts_init: UnixNanos,
) -> Result<OrderStatusReport>
Expand description

Parses a PolymarketOpenOrder into an [OrderStatusReport].

ยงErrors

Returns an error if a price or quantity cannot be represented by its domain type.