Skip to main content

parse_order_expired

Function parse_order_expired 

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

Parses a Deribit order message into an OrderExpired event.

This should be called when an order transitions to “expired” state (e.g., GTD orders that reached their expiry time).