cnb_fx_rates: Fetch Czech National Bank (CNB) exchange rates
Description
Retrieve the central bank exchange rate fixing (Czech koruna against foreign currencies) from the
CNB API.
Usage
cnb_fx_rates(date = NULL, year = NULL, lang = "EN")
Value
A data.table::data.table() with the requested exchange rates. The rate is the amount
of Czech koruna per amount units of the foreign currency.
Arguments
date
(NULL | character(1) | Date(1))
The date to query, returning rates for all currencies on that day. If NULL, the latest
available fixing is returned. Mutually exclusive with year. Default NULL.
year
(NULL | integer(1))
A calendar year, returning rates for all currencies on every working day of that year. Mutually
exclusive with date. Default NULL.
lang
(character(1))
Language for the country and currency names, either "EN" or "CZ". Default "EN".