Allow specifying "new_pairs_days" in config.

This commit is contained in:
Rokas Kupstys 2021-04-22 11:18:28 +03:00
parent 09efa7b06b
commit 3144185409
2 changed files with 2 additions and 1 deletions

View File

@ -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',

View File

@ -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': {