Only load 4 ib requests worth of bars on windows...

windows_testing_volume
wattygetlood 2021-09-28 18:40:56 -04:00 committed by Tyler Goodlet
parent 3c9c772177
commit 614089ae84
1 changed files with 5 additions and 0 deletions

View File

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