make --pairs-file required
This commit is contained in:
parent
4b8f382cfd
commit
a0c79bd727
@ -291,6 +291,7 @@ class Arguments(object):
|
|||||||
'--pairs-file',
|
'--pairs-file',
|
||||||
help='File containing a list of pairs to download',
|
help='File containing a list of pairs to download',
|
||||||
dest='pairs_file',
|
dest='pairs_file',
|
||||||
|
required=True,
|
||||||
default=None
|
default=None
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -15,12 +15,9 @@ arguments.testdata_dl_options()
|
|||||||
args = arguments.parse_args()
|
args = arguments.parse_args()
|
||||||
|
|
||||||
TICKER_INTERVALS = ['1m', '5m']
|
TICKER_INTERVALS = ['1m', '5m']
|
||||||
PAIRS = []
|
|
||||||
|
|
||||||
if args.pairs_file:
|
with open(args.pairs_file) as file:
|
||||||
with open(args.pairs_file) as file:
|
PAIRS = list(set(json.load(file)))
|
||||||
PAIRS = json.load(file)
|
|
||||||
PAIRS = list(set(PAIRS))
|
|
||||||
|
|
||||||
dl_path = DEFAULT_DL_PATH
|
dl_path = DEFAULT_DL_PATH
|
||||||
if args.export and os.path.exists(args.export):
|
if args.export and os.path.exists(args.export):
|
||||||
|
Loading…
Reference in New Issue
Block a user