Skip to main content

Module timeframe

Module timeframe 

Source
Expand description

Custom timeframe types and OHLCV bar resampling.

Structs§

BarResampler
Aggregates OHLCV bars into calendar-aligned target bars.
ConfirmedResampler
A lookahead-safe view over a BarResampler: only ever yields a bar once its target- timeframe bucket is confirmed closed, so it is structurally impossible to read a still-forming (repainting) higher-timeframe value through it — the equivalent of a lookahead-free higher-timeframe request combined with confirmed-only consumption.
ResamplerOutput
TimeframeError
Invalid timeframe configuration.

Enums§

Timeframe
Provider-neutral chart timeframe.