Allow --base and --quote be lists of currencies

This commit is contained in:
hroff-1902
2019-10-17 02:09:19 +03:00
parent d72d388726
commit 92fda0f76c
4 changed files with 25 additions and 19 deletions

View File

@@ -35,7 +35,7 @@ ARGS_LIST_EXCHANGES = ["print_one_column", "list_exchanges_all"]
ARGS_LIST_TIMEFRAMES = ["exchange", "print_one_column"]
ARGS_LIST_PAIRS = ["exchange", "print_list", "list_pairs_print_json", "print_one_column",
"print_csv", "base_currency", "quote_currency", "active_only"]
"print_csv", "base_currencies", "quote_currencies", "active_only"]
ARGS_CREATE_USERDIR = ["user_data_dir"]

View File

@@ -273,13 +273,15 @@ AVAILABLE_CLI_OPTIONS = {
help='Print exchange pair or market data in the csv format.',
action='store_true',
),
"quote_currency": Arg(
'--quote-currency',
help='Select quote currency.',
"quote_currencies": Arg(
'--quote',
help='Specify quote currency(-ies). Space-separated list.',
nargs='+',
),
"base_currency": Arg(
'--base-currency',
help='Select base currency.',
"base_currencies": Arg(
'--base',
help='Specify base currency(-ies). Space-separated list.',
nargs='+',
),
"active_only": Arg(
'--active-only',