diff --git a/freqtrade/arguments.py b/freqtrade/arguments.py index 7e895177a..04d94a572 100644 --- a/freqtrade/arguments.py +++ b/freqtrade/arguments.py @@ -291,6 +291,7 @@ class Arguments(object): '--pairs-file', help='File containing a list of pairs to download', dest='pairs_file', + required=True, default=None ) diff --git a/scripts/download_backtest_data.py b/scripts/download_backtest_data.py index 1c73eae03..85debe703 100755 --- a/scripts/download_backtest_data.py +++ b/scripts/download_backtest_data.py @@ -15,12 +15,9 @@ arguments.testdata_dl_options() args = arguments.parse_args() TICKER_INTERVALS = ['1m', '5m'] -PAIRS = [] -if args.pairs_file: - with open(args.pairs_file) as file: - PAIRS = json.load(file) -PAIRS = list(set(PAIRS)) +with open(args.pairs_file) as file: + PAIRS = list(set(json.load(file))) dl_path = DEFAULT_DL_PATH if args.export and os.path.exists(args.export):