From 536d1ff0d155f435acf3168968e828f037654f81 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Fri, 29 Apr 2022 10:05:52 -0400 Subject: [PATCH] Relay frame size in `NoData` due to null-result history --- piker/brokers/ib.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/piker/brokers/ib.py b/piker/brokers/ib.py index 8ddfb978..8ae14e5d 100644 --- a/piker/brokers/ib.py +++ b/piker/brokers/ib.py @@ -1482,7 +1482,9 @@ async def get_bars( if 'No market data permissions for' in msg: # TODO: signalling for no permissions searches - raise NoData(f'Symbol: {fqsn}') + raise NoData( + f'Symbol: {fqsn}', + ) break elif ( @@ -1562,7 +1564,10 @@ async def open_history_client( if out is None: # could be trying to retreive bars over weekend log.error(f"Can't grab bars starting at {end_dt}!?!?") - raise NoData(f'{end_dt}') + raise NoData( + f'{end_dt}', + frame_size=2000, + ) bars, bars_array, first_dt, last_dt = out