From 55dc27a197e4da45fb9ea3cb92baf0d3ff6f50cb Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 30 Sep 2022 10:05:11 -0400 Subject: [PATCH] Subtract duration instead of passing to `.subtract()` (facepalm) --- piker/brokers/ib/feed.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/brokers/ib/feed.py b/piker/brokers/ib/feed.py index eb321944..47b7ed25 100644 --- a/piker/brokers/ib/feed.py +++ b/piker/brokers/ib/feed.py @@ -307,7 +307,7 @@ async def get_bars( log.warning( f'History is blank for {dt_duration} from {end_dt}' ) - end_dt = end_dt.subtract(dt_duration) + end_dt -= dt_duration continue if bars_array is None: