Right partition the fqme to remove broker part in mkt-info cli

basic_buy_bot
Tyler Goodlet 2023-06-13 09:17:00 -04:00
parent ebbfa7f48d
commit 90810dcffd
1 changed files with 2 additions and 2 deletions

View File

@ -409,11 +409,11 @@ def mkt_info(
async with open_piker_runtime(
name='mkt_info_query',
# loglevel=loglevel,
# debug_mode=True,
debug_mode=True,
) as (_, _):
for fqme in tickers:
bs_fqme, _, broker = fqme.partition('.')
bs_fqme, _, broker = fqme.rpartition('.')
brokermod: ModuleType = brokermods[broker]
mkt, bs_pair = await core.mkt_info(
brokermod,