From b499631d62435fc9c44887b06ddd80406d1888c3 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 1 Sep 2020 12:46:30 -0400 Subject: [PATCH] Drop to 1k bars on init load --- piker/brokers/ib.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/piker/brokers/ib.py b/piker/brokers/ib.py index 9e306de1..3764a849 100644 --- a/piker/brokers/ib.py +++ b/piker/brokers/ib.py @@ -142,7 +142,7 @@ class Client: # durationStr='1 D', # time length calcs - durationStr='{count} S'.format(count=2000 * 5), + durationStr='{count} S'.format(count=1000 * 5), barSizeSetting='5 secs', # always use extended hours @@ -458,6 +458,8 @@ def normalize( return data +# TODO: figure out how to share quote feeds sanely despite +# the wacky ``ib_insync`` api. # @tractor.msg.pub async def stream_quotes( symbols: List[str],