pub fn parse_ws_kline_bar(
kline: &BybitWsKline,
instrument: &InstrumentAny,
bar_type: BarType,
timestamp_on_close: bool,
ts_init: UnixNanos,
) -> Result<Bar>Expand description
Parses a WebSocket kline payload into a [Bar].
ยงErrors
Returns an error if price or volume fields cannot be parsed or if the bar cannot be constructed.