Don't crash on unknown orders execing

basic_orders
Tyler Goodlet 2021-03-13 17:28:22 -05:00
parent 396f6b2a0d
commit f6dbdfab84
1 changed files with 4 additions and 1 deletions

View File

@ -378,7 +378,10 @@ async def process_broker_trades(
oid = paper['oid'] oid = paper['oid']
else: else:
msg['external'] msg.get('external')
if not msg:
log.error(f"Unknown trade event {event}")
continue continue
resp = { resp = {