parse_ws_candle

Function parse_ws_candle 

Source
pub fn parse_ws_candle(
    candle: &CandleData,
    instrument: &InstrumentAny,
    bar_type: &BarType,
    ts_init: UnixNanos,
) -> Result<Bar>
Expand description

Parses a WebSocket candle message into a [Bar].