use nargs for --pairs argument
This commit is contained in:
		| @@ -254,7 +254,8 @@ AVAILABLE_CLI_OPTIONS = { | ||||
|     # Script options | ||||
|     "pairs": Arg( | ||||
|         '-p', '--pairs', | ||||
|         help='Show profits for only these pairs. Pairs are comma-separated.', | ||||
|         help='Show profits for only these pairs. Pairs are space-separated.', | ||||
|         nargs='+', | ||||
|     ), | ||||
|     # Download data | ||||
|     "pairs_file": Arg( | ||||
| @@ -276,9 +277,10 @@ AVAILABLE_CLI_OPTIONS = { | ||||
|     "timeframes": Arg( | ||||
|         '-t', '--timeframes', | ||||
|         help=f'Specify which tickers to download. Space-separated list. ' | ||||
|         f'Default: `{constants.DEFAULT_DOWNLOAD_TICKER_INTERVALS}`.', | ||||
|         f'Default: `1m 5m`.', | ||||
|         choices=['1m', '3m', '5m', '15m', '30m', '1h', '2h', '4h', | ||||
|                  '6h', '8h', '12h', '1d', '3d', '1w'], | ||||
|         default=['1m', '5m'], | ||||
|         nargs='+', | ||||
|     ), | ||||
|     "erase": Arg( | ||||
|   | ||||
| @@ -23,7 +23,6 @@ ORDERTYPE_POSSIBILITIES = ['limit', 'market'] | ||||
| ORDERTIF_POSSIBILITIES = ['gtc', 'fok', 'ioc'] | ||||
| AVAILABLE_PAIRLISTS = ['StaticPairList', 'VolumePairList'] | ||||
| DRY_RUN_WALLET = 999.9 | ||||
| DEFAULT_DOWNLOAD_TICKER_INTERVALS = '1m 5m' | ||||
|  | ||||
| TICKER_INTERVALS = [ | ||||
|     '1m', '3m', '5m', '15m', '30m', | ||||
|   | ||||
| @@ -37,7 +37,7 @@ def init_plotscript(config): | ||||
|  | ||||
|     strategy = StrategyResolver(config).strategy | ||||
|     if "pairs" in config: | ||||
|         pairs = config["pairs"].split(',') | ||||
|         pairs = config["pairs"] | ||||
|     else: | ||||
|         pairs = config["exchange"]["pair_whitelist"] | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user