Skip to main content

resample_all

Function resample_all 

Source
pub fn resample_all<I>(timeframe: Timeframe, iter: I) -> Result<Vec<Candle>>
where I: IntoIterator<Item = Result<Candle>>,
Expand description

Roll an entire iterator of candles into a Vec of coarser candles. The final open bar (if any) is appended via Resampler::flush.