ib: clear error events on every received?
parent
038b20d13a
commit
cb8833d430
|
@ -1059,11 +1059,11 @@ class Client:
|
|||
api_err,
|
||||
report_api_err,
|
||||
):
|
||||
breakpoint()
|
||||
to_trio.send_nowait((
|
||||
'error',
|
||||
msg,
|
||||
))
|
||||
api_err.clear() # drop msg history
|
||||
|
||||
api_err.connect(report_api_err)
|
||||
|
||||
|
|
|
@ -837,6 +837,7 @@ async def stream_quotes(
|
|||
|
||||
# ibclient = proxy._aio_ns.ib.client
|
||||
# host, port = ibclient.host, ibclient.port
|
||||
fqsn = first_quote['fqsn']
|
||||
|
||||
# TODO: for loop through all symbols passed in
|
||||
init_msgs: dict[str, dict] = {
|
||||
|
@ -844,7 +845,7 @@ async def stream_quotes(
|
|||
# and that history has been written
|
||||
sym: {
|
||||
'symbol_info': syminfo,
|
||||
'fqsn': first_quote['fqsn'],
|
||||
'fqsn': fqsn,
|
||||
'bs_mktid': con.conId,
|
||||
},
|
||||
# 'status': {
|
||||
|
|
Loading…
Reference in New Issue