trading_mode is not necessarily mandatory

This commit is contained in:
Matthias 2023-01-12 23:38:53 +01:00
parent 183bf6819f
commit 5b3304189c
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ logger = logging.getLogger(__name__)
def migrate_binance_futures_names(config: Config):
if (
not (config['trading_mode'] == TradingMode.FUTURES
not (config.get('trading_mode', TradingMode.SPOT) == TradingMode.FUTURES
and config['exchange']['name'] == 'binance')
):
# only act on new futures