Skip to contents

Fetch the latest or historical Euro foreign exchange reference rates from the European Central Bank.

Usage

ecb_euro_rates(x = c("latest", "history"))

Arguments

x

character(1) one of "latest" or "history". Default "latest".

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-10-07 USD        1.10 
#>  2 2024-10-07 JPY      163.   
#>  3 2024-10-07 BGN        1.96 
#>  4 2024-10-07 CZK       25.3  
#>  5 2024-10-07 DKK        7.46 
#>  6 2024-10-07 GBP        0.839
#>  7 2024-10-07 HUF      402.   
#>  8 2024-10-07 PLN        4.32 
#>  9 2024-10-07 RON        4.98 
#> 10 2024-10-07 SEK       11.4  
#> # ℹ 21 more rows
# }