Drop `Symbol.front_feed()` usage from order mode

pre_overruns_ctxcancelled
Tyler Goodlet 2023-03-14 20:17:19 -04:00
parent e9cedc6613
commit 141d6ede9c
1 changed files with 4 additions and 4 deletions

View File

@ -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)