trading_mode is not necessarily mandatory

This commit is contained in:
Matthias 2023-01-12 23:38:53 +01:00
parent 183bf6819f
commit 5b3304189c

View File

@ -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