diff --git a/container/src/finance/lib/internal/lib_fetch.bash b/container/src/finance/lib/internal/lib_fetch.bash index a3b0a7f..9bf840f 100644 --- a/container/src/finance/lib/internal/lib_fetch.bash +++ b/container/src/finance/lib/internal/lib_fetch.bash @@ -53,7 +53,7 @@ function lib_fetch::__parse_args() \e[32mUsage:\e[0m - $ $global_usage <<[all${global_arg_delim_2}]> | <[price${global_arg_delim_2}] | [account${global_arg_delim_2}]>> [blockchain${global_arg_delim_2}] [year${global_arg_delim_2}] + $ $global_usage <<[all${global_arg_delim_2}]> | <[price${global_arg_delim_2}] | [account${global_arg_delim_2}]>> [blockchain${global_arg_delim_2}] [year${global_arg_delim_2}] \e[32mArguments:\e[0m @@ -63,7 +63,7 @@ function lib_fetch::__parse_args() Asset values (see documentation): - price${global_arg_delim_2} + price${global_arg_delim_2} api${global_arg_delim_2} @@ -450,7 +450,7 @@ function lib_fetch::__fetch_account() # Set output dir for internally fetched files # # NOTE: - # - subaccount may include custom symbol list with format: + # - subaccount may include custom ticker list with format: # # subaccount/{CUR1,CUR2,CUR3,etc.} # @@ -571,15 +571,15 @@ function lib_fetch::__fetch_price() # Prepare given assets and filesystem layout # - # Get symbols from configuration + # Get assets from configuration if [ -z "${global_arg_price[*]}" ]; then - # Parse out each symbol + # Parse out each asset while read _line; do - local _symbols+=("$_line") + local _assets+=("$_line") done < <(lib_fetch::__parse_yaml "get-values" "price.${global_arg_api}.asset") else - # Get symbols from CLI - local _symbols=("${global_arg_price[*]}") + # Get assets from CLI + local _assets=("${global_arg_price[*]}") fi # Set base dir for price files (subdirs will be by year) @@ -610,8 +610,8 @@ function lib_fetch::__fetch_price() declare -x API_PRICES_KEY="$_api_key" lib_utils::print_debug "$API_PRICES_KEY" - declare -x API_PRICES_SYMBOLS="${_symbols[*]}" - lib_utils::print_debug "$API_PRICES_SYMBOLS" + declare -x API_PRICES_ASSETS="${_assets[*]}" + lib_utils::print_debug "$API_PRICES_ASSETS" lib_fetch::__fetch_exec "prices" "crypto"