Module util
Expand description
Small helpers shared by the two connectors: instrument ids, timeframes and timestamps.
Functions§
- class_
code - Returns the class code (trading board, for example
TQBR) of an instrument id. - nanos_
to_ datetime - Converts a time in nanoseconds since the Unix epoch to a UTC date and time.
- require_
ticker_ class - Returns the BCS instrument key (ticker and class code) of an instrument id.
- ticker
- Returns the ticker (for example
SBER) of an instrument id. - timeframe_
label - The label of a timeframe in BCS requests:
M1 M5 M15 M30 H1 H4 D W MN(docs, checked 2026-10-19).M10is not offered by BCS:None, the caller answersUnsupported.