From 614089ae84c94616cf500665925f8484dc7fcf40 Mon Sep 17 00:00:00 2001 From: wattygetlood <61716739+wattygetlood@users.noreply.github.com> Date: Tue, 28 Sep 2021 18:40:56 -0400 Subject: [PATCH] Only load 4 ib requests worth of bars on windows... --- piker/brokers/ib.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/piker/brokers/ib.py b/piker/brokers/ib.py index 248039d4..8955317c 100644 --- a/piker/brokers/ib.py +++ b/piker/brokers/ib.py @@ -1157,6 +1157,11 @@ async def backfill_bars( https://github.com/pikers/piker/issues/128 """ + if platform.system() == 'Windows': + log.warning( + 'Decreasing history query count to 4 since, windows...') + count = 4 + out, fails = await get_bars(sym) if out is None: raise RuntimeError("Could not pull currrent history?!")