Ignore symbol-not-found errors
parent
7586e20ab4
commit
8b1c521ae9
|
@ -448,6 +448,7 @@ class Client:
|
|||
symbol=sym,
|
||||
exchange=exch,
|
||||
)
|
||||
try:
|
||||
possibles = await self.ib.qualifyContractsAsync(con)
|
||||
for i, condict in enumerate(sorted(
|
||||
map(asdict, possibles),
|
||||
|
@ -456,6 +457,8 @@ class Client:
|
|||
)):
|
||||
expiry = condict['lastTradeDateOrContractMonth']
|
||||
results[f'{sym}.{exch}.{expiry}'] = condict
|
||||
except RequestError as err:
|
||||
log.warning(err.message)
|
||||
|
||||
return results
|
||||
|
||||
|
|
Loading…
Reference in New Issue