Skip to main content

parse_order_accepted

Function parse_order_accepted 

Source
pub fn parse_order_accepted(
    msg: &DeribitOrderMsg,
    instrument: &InstrumentAny,
    account_id: AccountId,
    trader_id: TraderId,
    strategy_id: StrategyId,
    ts_init: UnixNanos,
) -> OrderAccepted
Expand description

Parses a Deribit order message into an OrderAccepted event.

This should be called when an order transitions to “open” state for the first time or when a buy/sell response is received successfully.