From 71d3572c27d19c28690edbc5b42e4eadffdbe36e Mon Sep 17 00:00:00 2001 From: Matthias Date: Thu, 14 Dec 2023 18:17:10 +0100 Subject: [PATCH] Support webserver strategy without max_open_trades --- freqtrade/rpc/rpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freqtrade/rpc/rpc.py b/freqtrade/rpc/rpc.py index 8437405d7..809c63e78 100644 --- a/freqtrade/rpc/rpc.py +++ b/freqtrade/rpc/rpc.py @@ -121,8 +121,8 @@ class RPC: 'stake_currency_decimals': decimals_per_coin(config['stake_currency']), 'stake_amount': str(config['stake_amount']), 'available_capital': config.get('available_capital'), - 'max_open_trades': (config['max_open_trades'] - if config['max_open_trades'] != float('inf') else -1), + 'max_open_trades': (config.get('max_open_trades', 0) + if config.get('max_open_trades', 0) != float('inf') else -1), 'minimal_roi': config['minimal_roi'].copy() if 'minimal_roi' in config else {}, 'stoploss': config.get('stoploss'), 'stoploss_on_exchange': config.get('order_types',