[−][src]Crate cxmr_candles
Candle data structures.
Structs
Candle | Candle data structure. |
CandleCollector | Candle collector. |
CsvIterator | CSV Candles iterator. |
UpdateState | Candle collector update state structure. |
Enums
UpdateKind | Candle collector update klind structure. |
Statics
HEADER | CSV Candle header. |
Traits
IntoCsvIterator | Converts into CSV iterator. |
Functions
candle_index | Calculates candle index starting from first timestamp. |
candle_ts | Calculates candle timestamp from first timestamp and index. |
candles_amount | Calculates amount of candles during given time period. Accepts rounded close start and end time of snapshot. |
round_close | Rounds timestamp in milliseconds to a candle close time. |
round_open | Rounds timestamp in milliseconds to a candle open time. |