Merge pull request #196 from pikers/ems_hotfixes

Ems hotfixes
msgspec_fixes
goodboy 2021-06-10 13:20:18 -04:00 committed by GitHub
commit 44e21197f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -1400,7 +1400,7 @@ async def trades_dialogue(
# mark msg as from "external system" # mark msg as from "external system"
# TODO: probably something better then this.. and start # TODO: probably something better then this.. and start
# considering multiplayer/group trades tracking # considering multiplayer/group trades tracking
msg['external'] = True msg.external = True
continue continue
# XXX: we always serialize to a dict for msgpack # XXX: we always serialize to a dict for msgpack

View File

@ -399,7 +399,12 @@ async def start_order_mode(
# each clearing tick is responded individually # each clearing tick is responded individually
elif resp in ('broker_filled',): elif resp in ('broker_filled',):
action = book._sent_orders[oid].action known_order = book._sent_orders.get(oid)
if not known_order:
log.warning(f'order {oid} is unknown')
continue
action = known_order.action
details = msg['brokerd_msg'] details = msg['brokerd_msg']
# TODO: some kinda progress system # TODO: some kinda progress system