Expand description
Small helpers: the identity of an instrument, the timeframe labels and the time conversions.
Functions§
- exchange_
of_ board - The exchange an instrument trades on:
SPBXfor the boardSPBX,MOEXfor every other board. - instrument_
id - The id of an instrument by ticker and board.
- nanos_
to_ datetime - A [
UnixNanos] as a date. - nanos_
to_ secs - Unix seconds of a [
UnixNanos]. - ticker_
board - The ticker and the trading mode (board) of an instrument. ALOR needs them as two fields, so the native id
must be [
NativeId::TickerClass] (the class code is the board, for exampleTQBR). - timeframe_
label - The
tfof the broker for a timeframe: a number of seconds, orD,W,M.