From 3144185409ddeb36529b693a7bcb19df400aac20 Mon Sep 17 00:00:00 2001 From: Rokas Kupstys Date: Thu, 22 Apr 2021 11:18:28 +0300 Subject: [PATCH] Allow specifying "new_pairs_days" in config. --- freqtrade/commands/cli_options.py | 1 - freqtrade/constants.py | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/freqtrade/commands/cli_options.py b/freqtrade/commands/cli_options.py index 80c56ecfa..b583b47ba 100644 --- a/freqtrade/commands/cli_options.py +++ b/freqtrade/commands/cli_options.py @@ -350,7 +350,6 @@ AVAILABLE_CLI_OPTIONS = { help='Download data of new pairs for given number of days. Default: `%(default)s`.', type=check_int_positive, metavar='INT', - default=30, ), "download_trades": Arg( '--dl-trades', diff --git a/freqtrade/constants.py b/freqtrade/constants.py index aea6e1ff2..77bd2a029 100644 --- a/freqtrade/constants.py +++ b/freqtrade/constants.py @@ -11,6 +11,7 @@ DEFAULT_EXCHANGE = 'bittrex' PROCESS_THROTTLE_SECS = 5 # sec HYPEROPT_EPOCH = 100 # epochs RETRY_TIMEOUT = 30 # sec +NEW_PAIRS_DAYS = 30 DEFAULT_DB_PROD_URL = 'sqlite:///tradesv3.sqlite' DEFAULT_DB_DRYRUN_URL = 'sqlite:///tradesv3.dryrun.sqlite' UNLIMITED_STAKE_AMOUNT = 'unlimited' @@ -96,6 +97,7 @@ CONF_SCHEMA = { 'type': 'object', 'properties': { 'max_open_trades': {'type': ['integer', 'number'], 'minimum': -1}, + 'new_pairs_days': {'type': 'integer', 'default': NEW_PAIRS_DAYS}, 'timeframe': {'type': 'string'}, 'stake_currency': {'type': 'string'}, 'stake_amount': {