Skip to content

Commit

Permalink
Surround "unlimited" by double quotes in build config.
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-long committed Aug 29, 2021
1 parent 19b3e8a commit 2087829
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions freqtrade/commands/build_config_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,22 @@ def ask_user_config() -> Dict[str, Any]:
{
"type": "text",
"name": "stake_amount",
"message": "Please insert your stake amount:",
"message": f"Please insert your stake amount (Integer or '{UNLIMITED_STAKE_AMOUNT}'):",
"default": "0.01",
"validate": lambda val: val == UNLIMITED_STAKE_AMOUNT or validate_is_float(val),
"filter": lambda val: '"' + UNLIMITED_STAKE_AMOUNT + '"'
if val == UNLIMITED_STAKE_AMOUNT
else val
},
{
"type": "text",
"name": "max_open_trades",
"message": f"Please insert max_open_trades (Integer or '{UNLIMITED_STAKE_AMOUNT}'):",
"default": "3",
"validate": lambda val: val == UNLIMITED_STAKE_AMOUNT or validate_is_int(val)
"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
},
{
"type": "text",
Expand Down

0 comments on commit 2087829

Please sign in to comment.