If backend does not provide `bs_mktid`, use the `bs_fqme`
parent
226c3364c3
commit
c415bd1ee1
|
@ -144,13 +144,14 @@ def validate_backend(
|
||||||
'lot_tick_size',
|
'lot_tick_size',
|
||||||
Decimal('1'),
|
Decimal('1'),
|
||||||
)
|
)
|
||||||
|
bs_mktid = init.get('bs_mktid') or bs_fqme
|
||||||
mkt = MktPair.from_fqme(
|
mkt = MktPair.from_fqme(
|
||||||
fqme=f'{bs_fqme}.{mod.name}',
|
fqme=f'{bs_fqme}.{mod.name}',
|
||||||
|
|
||||||
price_tick=price_tick,
|
price_tick=price_tick,
|
||||||
size_tick=size_tick,
|
size_tick=size_tick,
|
||||||
|
|
||||||
bs_mktid=str(init['bs_mktid']),
|
bs_mktid=str(bs_mktid),
|
||||||
_atype=symbol_info['asset_type']
|
_atype=symbol_info['asset_type']
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue