Drop `Symbol.front_feed()` usage from order mode
parent
91dda3020e
commit
acc5af1fdb
|
@ -354,7 +354,7 @@ class OrderMode:
|
||||||
order = staged.copy()
|
order = staged.copy()
|
||||||
order.oid = oid
|
order.oid = oid
|
||||||
|
|
||||||
order.symbol = order.symbol.front_fqsn()
|
order.symbol = order.symbol.fqme
|
||||||
|
|
||||||
lines = self.lines_from_order(
|
lines = self.lines_from_order(
|
||||||
order,
|
order,
|
||||||
|
@ -948,8 +948,8 @@ async def process_trade_msg(
|
||||||
):
|
):
|
||||||
sym = mode.chart.linked.symbol
|
sym = mode.chart.linked.symbol
|
||||||
pp_msg_symbol = msg['symbol'].lower()
|
pp_msg_symbol = msg['symbol'].lower()
|
||||||
fqsn = sym.front_fqsn()
|
fqsn = sym.fqme
|
||||||
broker, key = sym.front_feed()
|
broker = sym.broker
|
||||||
if (
|
if (
|
||||||
pp_msg_symbol == fqsn
|
pp_msg_symbol == fqsn
|
||||||
or pp_msg_symbol == fqsn.removesuffix(f'.{broker}')
|
or pp_msg_symbol == fqsn.removesuffix(f'.{broker}')
|
||||||
|
@ -997,7 +997,7 @@ async def process_trade_msg(
|
||||||
assert msg.resp in ('open', 'dark_open'), f'Unknown msg: {msg}'
|
assert msg.resp in ('open', 'dark_open'), f'Unknown msg: {msg}'
|
||||||
|
|
||||||
sym = mode.chart.linked.symbol
|
sym = mode.chart.linked.symbol
|
||||||
fqsn = sym.front_fqsn()
|
fqsn = sym.fqme
|
||||||
if (
|
if (
|
||||||
((order.symbol + f'.{msg.src}') == fqsn)
|
((order.symbol + f'.{msg.src}') == fqsn)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue