quantlab.utils.date_range.resample_padding#
- quantlab.utils.date_range.resample_padding(freq)[source]#
Return how far outside a range a resampled request reads source bars.
A resampled bar inside the range draws on source bars up to one resample period, plus the rest of the end day, outside it.
Examples
>>> resample_padding("1h") Timedelta('1 days 01:00:00')