pub fn parse_kline(
msg: &BinanceFuturesKlineMsg,
instrument: &InstrumentAny,
ts_init: UnixNanos,
) -> BinanceWsResult<Option<Bar>>Expand description
Parses a kline message into a Bar.
Returns None if the kline is not closed yet.
ยงErrors
Returns an error if parsing fails.