`Order.symbol` is a `str`..
parent
d839fcb8e7
commit
3cf590eedf
|
@ -88,7 +88,7 @@ class Dialog(Struct):
|
||||||
# TODO: use ``pydantic.UUID4`` field
|
# TODO: use ``pydantic.UUID4`` field
|
||||||
uuid: str
|
uuid: str
|
||||||
order: Order
|
order: Order
|
||||||
symbol: Symbol
|
symbol: str
|
||||||
lines: list[LevelLine]
|
lines: list[LevelLine]
|
||||||
last_status_close: Callable = lambda: None
|
last_status_close: Callable = lambda: None
|
||||||
msgs: dict[str, dict] = {}
|
msgs: dict[str, dict] = {}
|
||||||
|
@ -379,7 +379,7 @@ class OrderMode:
|
||||||
dialog = Dialog(
|
dialog = Dialog(
|
||||||
uuid=order.oid,
|
uuid=order.oid,
|
||||||
order=order,
|
order=order,
|
||||||
symbol=order.symbol,
|
symbol=order.symbol, # XXX: always a str?
|
||||||
lines=lines,
|
lines=lines,
|
||||||
last_status_close=self.multistatus.open_status(
|
last_status_close=self.multistatus.open_status(
|
||||||
f'submitting {order.exec_mode}-{order.action}',
|
f'submitting {order.exec_mode}-{order.action}',
|
||||||
|
@ -964,8 +964,9 @@ async def process_trade_msg(
|
||||||
oid = msg.oid
|
oid = msg.oid
|
||||||
dialog: Dialog = mode.dialogs.get(oid)
|
dialog: Dialog = mode.dialogs.get(oid)
|
||||||
|
|
||||||
fqsn = dialog.symbol.front_fqsn()
|
if dialog:
|
||||||
flume = mode.feed.flumes[fqsn]
|
fqsn = dialog.symbol
|
||||||
|
flume = mode.feed.flumes[fqsn]
|
||||||
|
|
||||||
match msg:
|
match msg:
|
||||||
case Status(
|
case Status(
|
||||||
|
|
Loading…
Reference in New Issue