Function parse_candlestick
Source pub fn parse_candlestick(
raw: &OKXCandlestick,
bar_type: BarType,
price_precision: u8,
size_precision: u8,
ts_init: UnixNanos,
) -> Result<Bar>
Expand description
Parses an OKX historical candlestick record into a Nautilus Bar
.
ยงErrors
Returns an error if any of the price or volume strings cannot be parsed or
if Bar::new
validation fails.