Skip to main content

parse_kline

Function parse_kline 

Source
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.