Skip to main content

parse_user_order_msg

Function parse_user_order_msg 

Source
pub fn parse_user_order_msg(
    msg: &DeribitOrderMsg,
    instrument: &InstrumentAny,
    account_id: AccountId,
    ts_init: UnixNanos,
) -> Result<OrderStatusReport>
Expand description

Parses a Deribit user order message into a Nautilus OrderStatusReport.

ยงErrors

Returns an error if the order data cannot be parsed.