Skip to main content

parse_ws_status_product

Function parse_ws_status_product 

Source
pub fn parse_ws_status_product(
    product: &WsStatusProduct,
    instrument_id: InstrumentId,
    ts_event: UnixNanos,
    ts_init: UnixNanos,
) -> Option<InstrumentStatus>
Expand description

Parses a WsStatusProduct from the status channel into an [InstrumentStatus].

Returns None when the venue’s status is unset (e.g. futures products in the FCM session), which carries no information for the data engine.