api-server should fully support max_open_trades=-1

This commit is contained in:
Matthias 2021-01-15 20:47:12 +01:00
parent baef8b4f79
commit d74376726a
1 changed files with 2 additions and 1 deletions

View File

@ -121,7 +121,8 @@ class RPC:
'dry_run': config['dry_run'],
'stake_currency': config['stake_currency'],
'stake_amount': config['stake_amount'],
'max_open_trades': config['max_open_trades'],
'max_open_trades': (config['max_open_trades']
if config['max_open_trades'] != float('inf') else -1),
'minimal_roi': config['minimal_roi'].copy() if 'minimal_roi' in config else {},
'stoploss': config.get('stoploss'),
'trailing_stop': config.get('trailing_stop'),