Skip to main content

Module util

Module util 

Expand description

Small helpers: instrument ids, intervals, times.

Functions§

instrument_id
The id of an instrument: the symbol and the category.
interval_label
The interval word of the API for a timeframe, None for a timeframe the exchange has no candles for (10 minutes).
nanos_to_ms
Milliseconds since the epoch from nanoseconds.
symbol_category
The symbol and the category of an instrument id.