resample_series#

API documentation for tradingstrategy.utils.groupeduniverse.resample_series Python function.

resample_series(series, new_timedelta, forward_fill=False)[source]#

Downsample or upsample liquidity series. If upsamping, use forward_fill = True to fill in the missing values.

Note, this does not apply to OHLCV candles, use resample_candles() for that.

Parameters:
  • series (Series) – Series to resample

  • new_timedelta (Timedelta) – New timedelta to resample to

  • forward_fill (bool) – Forward fill missing values if upsampling