Skip to main content

parse_user_trade_msg

Function parse_user_trade_msg 

Source
pub fn parse_user_trade_msg(
    msg: &DeribitUserTradeMsg,
    instrument: &InstrumentAny,
    account_id: AccountId,
    ts_init: UnixNanos,
) -> Result<FillReport>
Expand description

Parses a Deribit user trade message into a Nautilus FillReport.

ยงErrors

Returns an error if the trade data cannot be parsed.