Skip to main content

parse_ws_candle

Function parse_ws_candle 

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

Parses a WebSocket candle into a [Bar].