paperboi: fix fqme parsing to handle `bs_fqme` cases

master
Tyler Goodlet 2023-05-09 18:34:01 -04:00
parent 769b292dca
commit c6e5368520
1 changed files with 2 additions and 1 deletions

View File

@ -572,7 +572,8 @@ async def trades_dialogue(
# loading any pps
mkt_by_fqme: dict[str, MktPair] = {}
if fqme:
mkt, _ = await brokermod.get_mkt_info(fqme.rstrip(f'.{broker}'))
bs_fqme, _, broker = fqme.rpartition('.')
mkt, _ = await brokermod.get_mkt_info(bs_fqme)
mkt_by_fqme[fqme] = mkt
# for each sym in the ledger load it's `MktPair` info