trading_mode is not necessarily mandatory
This commit is contained in:
parent
183bf6819f
commit
5b3304189c
@ -12,7 +12,7 @@ logger = logging.getLogger(__name__)
|
|||||||
def migrate_binance_futures_names(config: Config):
|
def migrate_binance_futures_names(config: Config):
|
||||||
|
|
||||||
if (
|
if (
|
||||||
not (config['trading_mode'] == TradingMode.FUTURES
|
not (config.get('trading_mode', TradingMode.SPOT) == TradingMode.FUTURES
|
||||||
and config['exchange']['name'] == 'binance')
|
and config['exchange']['name'] == 'binance')
|
||||||
):
|
):
|
||||||
# only act on new futures
|
# only act on new futures
|
||||||
|
Loading…
Reference in New Issue
Block a user