pub fn parse_ws_index_price_update(
stats: &LighterMarketStats,
instrument: &InstrumentAny,
timestamp_ms: u64,
ts_init: UnixNanos,
) -> Result<IndexPriceUpdate>Expand description
Parses a Lighter perpetual market-stat update into an index price update.
ยงErrors
Returns an error if the index price or timestamp cannot be converted.