Skip to main content

parse_ws_twap_history_row

Function parse_ws_twap_history_row 

Source
pub fn parse_ws_twap_history_row(
    row: &WsTwapHistoryData,
    user: &str,
    is_snapshot: bool,
    instrument: Option<&InstrumentAny>,
    ts_init: UnixNanos,
) -> Result<HyperliquidTwapHistory>
Expand description

Parses one userTwapHistory row into custom data.

Unknown coins leave instrument_id unset and do not fail the parse.