From d69d3b319eec9d548ffaf266752f39378d292e31 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 2 Dec 2021 08:08:37 -0500 Subject: [PATCH] Lengthen startup quote get timeout --- piker/brokers/ib.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/piker/brokers/ib.py b/piker/brokers/ib.py index d9e22d51..77bf513e 100644 --- a/piker/brokers/ib.py +++ b/piker/brokers/ib.py @@ -1164,6 +1164,7 @@ async def backfill_bars( """ out, fails = await get_bars(sym) + if out is None: raise RuntimeError("Could not pull currrent history?!") @@ -1356,7 +1357,7 @@ async def stream_quotes( # TODO: support multiple subscriptions sym = symbols[0] - with trio.fail_after(3): + with trio.fail_after(5): contract, first_ticker, details = await _trio_run_client_method( method='get_quote', symbol=sym,