Support loading paper engine live orders

open_order_loading
Tyler Goodlet 2022-08-14 16:42:29 -04:00
parent 317610e00a
commit a602c47d47
1 changed files with 7 additions and 2 deletions

View File

@ -539,7 +539,7 @@ class OrderMode:
src = msg.src
if (
src
and src != 'dark'
and src not in ('dark', 'paperboi')
and src not in symbol
):
fqsn = symbol + '.' + src
@ -900,6 +900,7 @@ async def process_trade_msg(
mode.on_submit(oid)
else:
# await tractor.breakpoint()
log.warning(
f'received msg for untracked dialog:\n{fmsg}'
)
@ -914,7 +915,11 @@ async def process_trade_msg(
# a existing dark order for the same symbol
or (
order.symbol == fqsn
and (msg.src == 'dark') or (msg.src in fqsn)
and (
msg.src in ('dark', 'paperboi')
or (msg.src in fqsn)
)
)
):
dialog = mode.load_unknown_dialog_from_msg(msg)