Fetch the latest or historical Euro foreign exchange reference rates from the European Central Bank.
Usage
ecb_euro_rates(x = c("latest", "history"))
Value
A data.frame()
with the reference rates.
Details
Note you can achieve the same by calling the ecb_data()
function with the right
parameters for each currency.
The reference rates are usually updated at around 16:00 CET every working day, except on TARGET closing days.
They are based on the daily concertation procedure between central banks across Europe, which normally takes place around 14:10 CET. The reference rates are published for information purposes only. Using the rates for transaction purposes is strongly discouraged.
Examples
# \donttest{
ecb_euro_rates()
#> # A tibble: 31 × 3
#> date currency rate
#> <date> <chr> <dbl>
#> 1 2024-11-11 USD 1.07
#> 2 2024-11-11 JPY 164.
#> 3 2024-11-11 BGN 1.96
#> 4 2024-11-11 CZK 25.3
#> 5 2024-11-11 DKK 7.46
#> 6 2024-11-11 GBP 0.827
#> 7 2024-11-11 HUF 410.
#> 8 2024-11-11 PLN 4.34
#> 9 2024-11-11 RON 4.97
#> 10 2024-11-11 SEK 11.6
#> # ℹ 21 more rows
# }