From a270b2e0339adbe2e5a7c1f6ae3a504b2ba04a53 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?!")