From da39ca66503934df3afbfa7a6c03d36c88d8996b Mon Sep 17 00:00:00 2001 From: Stefano Ariestasia Date: Sun, 30 Jan 2022 21:19:05 +0900 Subject: [PATCH] fix new-config --- docs/utils.md | 2 +- freqtrade/commands/build_config_commands.py | 7 ++----- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/utils.md b/docs/utils.md index 4a032db26..c6e795e60 100644 --- a/docs/utils.md +++ b/docs/utils.md @@ -59,7 +59,7 @@ $ freqtrade new-config --config config_binance.json ? Do you want to enable Dry-run (simulated trades)? Yes ? Please insert your stake currency: BTC ? Please insert your stake amount: 0.05 -? Please insert max_open_trades (Integer or 'unlimited'): 3 +? Please insert max_open_trades (Integer or -1 for unlimited open trades): 3 ? Please insert your desired timeframe (e.g. 5m): 5m ? Please insert your display Currency (for reporting): USD ? Select exchange binance diff --git a/freqtrade/commands/build_config_commands.py b/freqtrade/commands/build_config_commands.py index 9e95cc455..ca3f11a21 100644 --- a/freqtrade/commands/build_config_commands.py +++ b/freqtrade/commands/build_config_commands.py @@ -76,12 +76,9 @@ def ask_user_config() -> Dict[str, Any]: { "type": "text", "name": "max_open_trades", - "message": f"Please insert max_open_trades (Integer or '{UNLIMITED_STAKE_AMOUNT}'):", + "message": "Please insert max_open_trades (Integer or -1 for unlimited open trades):", "default": "3", - "validate": lambda val: val == UNLIMITED_STAKE_AMOUNT or validate_is_int(val), - "filter": lambda val: '"' + UNLIMITED_STAKE_AMOUNT + '"' - if val == UNLIMITED_STAKE_AMOUNT - else val + "validate": lambda val: validate_is_int(val) }, { "type": "select",