Merge pull request #1962 from hroff-1902/fix-help-strings
minor: fix help strings shown to the user
This commit is contained in:
commit
da5f77c96f
@ -87,9 +87,9 @@ class Arguments(object):
|
|||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-c', '--config',
|
'-c', '--config',
|
||||||
help="Specify configuration file (default: %(default)s). "
|
help=f'Specify configuration file (default: {constants.DEFAULT_CONFIG}). '
|
||||||
"Multiple --config options may be used. "
|
f'Multiple --config options may be used. '
|
||||||
"Can be set to '-' to read config from stdin.",
|
f'Can be set to `-` to read config from stdin.',
|
||||||
dest='config',
|
dest='config',
|
||||||
action='append',
|
action='append',
|
||||||
metavar='PATH',
|
metavar='PATH',
|
||||||
@ -133,8 +133,8 @@ class Arguments(object):
|
|||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--db-url',
|
'--db-url',
|
||||||
help='Override trades database URL, this is useful if dry_run is enabled'
|
help=f'Override trades database URL, this is useful if dry_run is enabled '
|
||||||
' or in custom deployments (default: %(default)s).',
|
f'or in custom deployments (default: {constants.DEFAULT_DB_DRYRUN_URL}.',
|
||||||
dest='db_url',
|
dest='db_url',
|
||||||
metavar='PATH',
|
metavar='PATH',
|
||||||
)
|
)
|
||||||
@ -228,10 +228,10 @@ class Arguments(object):
|
|||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--export-filename',
|
'--export-filename',
|
||||||
help='Save backtest results to this filename \
|
help='Save backtest results to this filename '
|
||||||
requires --export to be set as well\
|
'requires --export to be set as well. '
|
||||||
Example --export-filename=user_data/backtest_data/backtest_today.json\
|
'Example --export-filename=user_data/backtest_data/backtest_today.json '
|
||||||
(default: %(default)s)',
|
'(default: %(default)s)',
|
||||||
default=os.path.join('user_data', 'backtest_data', 'backtest-result.json'),
|
default=os.path.join('user_data', 'backtest_data', 'backtest-result.json'),
|
||||||
dest='exportfilename',
|
dest='exportfilename',
|
||||||
metavar='PATH',
|
metavar='PATH',
|
||||||
@ -247,7 +247,7 @@ class Arguments(object):
|
|||||||
'--stoplosses',
|
'--stoplosses',
|
||||||
help='Defines a range of stoploss against which edge will assess the strategy '
|
help='Defines a range of stoploss against which edge will assess the strategy '
|
||||||
'the format is "min,max,step" (without any space). '
|
'the format is "min,max,step" (without any space). '
|
||||||
'example: --stoplosses=-0.01,-0.1,-0.001',
|
'Example: --stoplosses=-0.01,-0.1,-0.001',
|
||||||
dest='stoploss_range',
|
dest='stoploss_range',
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -289,8 +289,8 @@ class Arguments(object):
|
|||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-s', '--spaces',
|
'-s', '--spaces',
|
||||||
help='Specify which parameters to hyperopt. Space separate list. \
|
help='Specify which parameters to hyperopt. Space separate list. '
|
||||||
Default: %(default)s.',
|
'Default: %(default)s.',
|
||||||
choices=['all', 'buy', 'sell', 'roi', 'stoploss'],
|
choices=['all', 'buy', 'sell', 'roi', 'stoploss'],
|
||||||
default='all',
|
default='all',
|
||||||
nargs='+',
|
nargs='+',
|
||||||
@ -467,13 +467,14 @@ class Arguments(object):
|
|||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'--exchange',
|
'--exchange',
|
||||||
help='Exchange name (default: %(default)s). Only valid if no config is provided.',
|
help=f'Exchange name (default: {constants.DEFAULT_EXCHANGE}). '
|
||||||
|
f'Only valid if no config is provided.',
|
||||||
dest='exchange',
|
dest='exchange',
|
||||||
)
|
)
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
'-t', '--timeframes',
|
'-t', '--timeframes',
|
||||||
help='Specify which tickers to download. Space separated list. \
|
help=f'Specify which tickers to download. Space separated list. '
|
||||||
Default: %(default)s.',
|
f'Default: {constants.DEFAULT_DOWNLOAD_TICKER_INTERVALS}.',
|
||||||
choices=['1m', '3m', '5m', '15m', '30m', '1h', '2h', '4h',
|
choices=['1m', '3m', '5m', '15m', '30m', '1h', '2h', '4h',
|
||||||
'6h', '8h', '12h', '1d', '3d', '1w'],
|
'6h', '8h', '12h', '1d', '3d', '1w'],
|
||||||
nargs='+',
|
nargs='+',
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
bot constants
|
bot constants
|
||||||
"""
|
"""
|
||||||
DEFAULT_CONFIG = 'config.json'
|
DEFAULT_CONFIG = 'config.json'
|
||||||
|
DEFAULT_EXCHANGE = 'bittrex'
|
||||||
DYNAMIC_WHITELIST = 20 # pairs
|
DYNAMIC_WHITELIST = 20 # pairs
|
||||||
PROCESS_THROTTLE_SECS = 5 # sec
|
PROCESS_THROTTLE_SECS = 5 # sec
|
||||||
DEFAULT_TICKER_INTERVAL = 5 # min
|
DEFAULT_TICKER_INTERVAL = 5 # min
|
||||||
@ -21,6 +22,7 @@ ORDERTYPE_POSSIBILITIES = ['limit', 'market']
|
|||||||
ORDERTIF_POSSIBILITIES = ['gtc', 'fok', 'ioc']
|
ORDERTIF_POSSIBILITIES = ['gtc', 'fok', 'ioc']
|
||||||
AVAILABLE_PAIRLISTS = ['StaticPairList', 'VolumePairList']
|
AVAILABLE_PAIRLISTS = ['StaticPairList', 'VolumePairList']
|
||||||
DRY_RUN_WALLET = 999.9
|
DRY_RUN_WALLET = 999.9
|
||||||
|
DEFAULT_DOWNLOAD_TICKER_INTERVALS = '1m 5m'
|
||||||
|
|
||||||
TICKER_INTERVALS = [
|
TICKER_INTERVALS = [
|
||||||
'1m', '3m', '5m', '15m', '30m',
|
'1m', '3m', '5m', '15m', '30m',
|
||||||
|
Loading…
Reference in New Issue
Block a user