Right partition the fqme to remove broker part in mkt-info cli
parent
ebbfa7f48d
commit
90810dcffd
|
@ -409,11 +409,11 @@ def mkt_info(
|
||||||
async with open_piker_runtime(
|
async with open_piker_runtime(
|
||||||
name='mkt_info_query',
|
name='mkt_info_query',
|
||||||
# loglevel=loglevel,
|
# loglevel=loglevel,
|
||||||
# debug_mode=True,
|
debug_mode=True,
|
||||||
|
|
||||||
) as (_, _):
|
) as (_, _):
|
||||||
for fqme in tickers:
|
for fqme in tickers:
|
||||||
bs_fqme, _, broker = fqme.partition('.')
|
bs_fqme, _, broker = fqme.rpartition('.')
|
||||||
brokermod: ModuleType = brokermods[broker]
|
brokermod: ModuleType = brokermods[broker]
|
||||||
mkt, bs_pair = await core.mkt_info(
|
mkt, bs_pair = await core.mkt_info(
|
||||||
brokermod,
|
brokermod,
|
||||||
|
|
Loading…
Reference in New Issue