Accept direct fqsn matches on position msg updates

kraken_ws_orders
Tyler Goodlet 2022-07-19 08:59:09 -04:00
parent 3b79743c7b
commit 64f920d7e5
1 changed files with 3 additions and 7 deletions

View File

@ -794,15 +794,11 @@ async def process_trades_and_update_ui(
pp_msg_symbol = msg['symbol'].lower() pp_msg_symbol = msg['symbol'].lower()
fqsn = sym.front_fqsn() fqsn = sym.front_fqsn()
broker, key = sym.front_feed() broker, key = sym.front_feed()
# print(
# f'pp msg symbol: {pp_msg_symbol}\n',
# f'fqsn: {fqsn}\n',
# f'front key: {key}\n',
# )
if ( if (
pp_msg_symbol == fqsn.replace(f'.{broker}', '') pp_msg_symbol == fqsn
or pp_msg_symbol == fqsn.removesuffix(f'.{broker}')
): ):
log.info(f'{fqsn} matched pp msg: {fmsg}')
tracker = mode.trackers[msg['account']] tracker = mode.trackers[msg['account']]
tracker.live_pp.update_from_msg(msg) tracker.live_pp.update_from_msg(msg)
# update order pane widgets # update order pane widgets