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.table::data.table() 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()
#>           date currency        rate
#>         <Date>   <char>       <num>
#>  1: 2025-01-16      USD     1.02720
#>  2: 2025-01-16      JPY   160.46000
#>  3: 2025-01-16      BGN     1.95580
#>  4: 2025-01-16      CZK    25.23100
#>  5: 2025-01-16      DKK     7.46090
#>  6: 2025-01-16      GBP     0.84258
#>  7: 2025-01-16      HUF   412.35000
#>  8: 2025-01-16      PLN     4.26880
#>  9: 2025-01-16      RON     4.97540
#> 10: 2025-01-16      SEK    11.48500
#> 11: 2025-01-16      CHF     0.93760
#> 12: 2025-01-16      ISK   145.10000
#> 13: 2025-01-16      NOK    11.69650
#> 14: 2025-01-16      TRY    36.40710
#> 15: 2025-01-16      AUD     1.65740
#> 16: 2025-01-16      BRL     6.19840
#> 17: 2025-01-16      CAD     1.47760
#> 18: 2025-01-16      CNY     7.53110
#> 19: 2025-01-16      HKD     8.00070
#> 20: 2025-01-16      IDR 16852.50000
#> 21: 2025-01-16      ILS     3.72320
#> 22: 2025-01-16      INR    88.94300
#> 23: 2025-01-16      KRW  1499.04000
#> 24: 2025-01-16      MXN    21.18240
#> 25: 2025-01-16      MYR     4.62500
#> 26: 2025-01-16      NZD     1.83890
#> 27: 2025-01-16      PHP    60.15700
#> 28: 2025-01-16      SGD     1.40610
#> 29: 2025-01-16      THB    35.59200
#> 30: 2025-01-16      ZAR    19.40480
#>           date currency        rate
# }