okx_timeframe_as_bar_spec

Function okx_timeframe_as_bar_spec 

Source
pub fn okx_timeframe_as_bar_spec(timeframe: &str) -> Result<BarSpecification>
Expand description

Converts OKX timeframe string to Nautilus bar specification.

ยงErrors

Returns an error if the timeframe string is not recognized.