order_mode: embedded `Order` maybe be in dict form..

ib_py311_fixes
Tyler Goodlet 2023-08-18 15:13:35 -04:00
parent a695208992
commit 9d31941d42
1 changed files with 4 additions and 1 deletions

View File

@ -1163,7 +1163,10 @@ async def process_trade_msg(
# XXX TODO: have seen order be a dict here!?
# that should never happen tho?
action: str = order.action
action: str = (
getattr(order, 'action', None)
or order['action']
)
details: dict = msg.brokerd_msg
# TODO: state tracking: