I'm trying to resample 1 minute bars to 20 minutes.
But the resampled bars are produced at absurd intervals.
Source of datafeed: Interactive Brokers API
Market hours: 09:15 hrs to 15:30 hrs
Backfill duration: 10 days
Note: Data provided by IB API is left-edge labeled (forward looking) by default. BackwardLookingFilter is a simple workaround that handles rightedge-ing minute bars. The problem persists with or without it.
I'm trying to resample 1 minute bars to 20 minutes. But the resampled bars are produced at absurd intervals.
Source of datafeed: Interactive Brokers API Market hours: 09:15 hrs to 15:30 hrs Backfill duration: 10 days
Note: Data provided by IB API is left-edge labeled (forward looking) by default.
BackwardLookingFilter
is a simple workaround that handles rightedge-ing minute bars. The problem persists with or without it.Output:
Ideally after 09:35:00 the next 20 Minute bar should be produced at 09:55:00.
Unexpected behavior: The 20 Minute datafeed produces a bar at time: 09:37:00. (4th row in output)