From 2302e59f1d2854d60c7d1e5d3e84fbba76099f6b Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Tue, 29 Sep 2020 16:24:32 -0400 Subject: [PATCH] 3k bars for now, ignore rtTime --- piker/brokers/ib.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/piker/brokers/ib.py b/piker/brokers/ib.py index 01e30e3d..020bfecc 100644 --- a/piker/brokers/ib.py +++ b/piker/brokers/ib.py @@ -148,7 +148,7 @@ class Client: # durationStr='1 D', # time length calcs - durationStr='{count} S'.format(count=100 * 5), + durationStr='{count} S'.format(count=3000 * 5), barSizeSetting='5 secs', # always use extended hours @@ -486,8 +486,13 @@ def normalize( # add time stamps for downstream latency measurements data['brokerd_ts'] = time.time() - if ticker.rtTime: - data['broker_ts'] = data['rtTime_s'] = float(ticker.rtTime) / 1000. + + # stupid stupid shit...don't even care any more + # leave it until we do a proper latency study + # if ticker.rtTime is not None: + # data['broker_ts'] = data['rtTime_s'] = float( + # ticker.rtTime.timestamp) / 1000. + data.pop('rtTime') return data