'Just getitem access the 'action' from req msg'

even_moar_kraken_order_fixes
Tyler Goodlet 2022-10-28 15:10:48 -04:00
parent e6dd1458f8
commit fa368b1263
1 changed files with 3 additions and 4 deletions

View File

@ -56,7 +56,7 @@ from ._position import (
from ._forms import FieldsForm from ._forms import FieldsForm
from ._window import MultiStatus from ._window import MultiStatus
from ..clearing._messages import ( from ..clearing._messages import (
Cancel, # Cancel,
Order, Order,
Status, Status,
# BrokerdOrder, # BrokerdOrder,
@ -1011,12 +1011,11 @@ async def process_trade_msg(
case Status(resp='canceled'): case Status(resp='canceled'):
# delete level line from view # delete level line from view
mode.on_cancel(oid) mode.on_cancel(oid)
req = Cancel(**msg.req) log.cancel(f'Canceled {msg.req["action"]}:{oid}')
log.cancel(f'Canceled {req.action}:{oid}')
case Status( case Status(
resp='triggered', resp='triggered',
# req=Order(exec_mode='dark') # TODO: # req=Order(exec_mode='dark') # TODO: msgspec
req={'exec_mode': 'dark'}, req={'exec_mode': 'dark'},
): ):
# TODO: UX for a "pending" clear/live order # TODO: UX for a "pending" clear/live order