mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 02:12:01 +00:00
make --pairs-file required
This commit is contained in:
parent
4b8f382cfd
commit
a0c79bd727
|
@ -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
|
||||
)
|
||||
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user