Skip to main content

List currencies

List the currency codes the chosen rate source can convert, with each rate against its base currency.

Command in the Currency toolkit · id ooa.currency/list_currencies · 5 inputs, 4 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
SourceStringNoecbecb: European Central Bank daily reference rates (base EUR). json: a JSON rates service at 'url'. fixed: the 'rates' Dictionary.
Address (URL)StringNoFor json: the address returning the rates. For ecb: leave empty to use the ECB's public file.
Rates pathStringNoFor json: where the rates object sits in the answer, e.g. rates, $.data.rates or results[0].rates. Empty = the whole answer.
Base currencyStringNoCurrency the rates are quoted against (rate 1). ecb: always EUR. json: taken from the answer's 'base' field when empty. fixed: required.
RatesDictionaryNoFor fixed: currency code to rate against the base, e.g. {"USD": 1.08, "GBP": 0.85}.

Outputs​

OutputTypeWhat it is
currenciesListCurrency codes, sorted, including the base currency.
ratesDictionaryCode to rate against the base currency.
base_currencyStringCurrency the rates are quoted against.
rate_dateStringDate of the rates when the source gives one, otherwise empty.