Just warn on `ib` symbol search lags

agg_feedz
Tyler Goodlet 2022-11-08 14:50:31 -05:00
parent c7d5db5f90
commit 5bf3cb8e4b
1 changed files with 7 additions and 1 deletions

View File

@ -1047,7 +1047,13 @@ async def open_symbol_search(
stock_results = [] stock_results = []
async def stash_results(target: Awaitable[list]): async def stash_results(target: Awaitable[list]):
stock_results.extend(await target) try:
results = await target
except tractor.trionics.Lagged:
print("IB SYM-SEARCH OVERRUN?!?")
return
stock_results.extend(results)
for i in range(10): for i in range(10):
with trio.move_on_after(3) as cs: with trio.move_on_after(3) as cs: