If backend does not provide `bs_mktid`, use the `bs_fqme`

marketstore_disable_snappy
Tyler Goodlet 2023-05-09 14:37:32 -04:00
parent 226c3364c3
commit c415bd1ee1
1 changed files with 2 additions and 1 deletions

View File

@ -144,13 +144,14 @@ def validate_backend(
'lot_tick_size',
Decimal('1'),
)
bs_mktid = init.get('bs_mktid') or bs_fqme
mkt = MktPair.from_fqme(
fqme=f'{bs_fqme}.{mod.name}',
price_tick=price_tick,
size_tick=size_tick,
bs_mktid=str(init['bs_mktid']),
bs_mktid=str(bs_mktid),
_atype=symbol_info['asset_type']
)