From a602c47d47433bb2ccc700d7841155b19d5b44e6 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 14 Aug 2022 16:42:29 -0400 Subject: [PATCH] Support loading paper engine live orders --- piker/ui/order_mode.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/piker/ui/order_mode.py b/piker/ui/order_mode.py index cecb8787..10ae8866 100644 --- a/piker/ui/order_mode.py +++ b/piker/ui/order_mode.py @@ -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)