Skip to contents

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

Usage

ecb_fx_rates(x = "latest")

ecb_euro_rates(x = "latest")

Arguments

x

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

Value

A data.table::data.table() with the exchange 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_fx_rates()
#>           date currency       rate
#>         <Date>   <char>      <num>
#>  1: 2025-11-03      USD     1.1514
#>  2: 2025-11-03      JPY   177.5700
#>  3: 2025-11-03      BGN     1.9558
#>  4: 2025-11-03      CZK    24.3390
#>  5: 2025-11-03      DKK     7.4676
#>  6: 2025-11-03      GBP     0.8765
#>  7: 2025-11-03      HUF   387.3500
#>  8: 2025-11-03      PLN     4.2540
#>  9: 2025-11-03      RON     5.0856
#> 10: 2025-11-03      SEK    10.9350
#> 11: 2025-11-03      CHF     0.9298
#> 12: 2025-11-03      ISK   145.8000
#> 13: 2025-11-03      NOK    11.6480
#> 14: 2025-11-03      TRY    48.4143
#> 15: 2025-11-03      AUD     1.7597
#> 16: 2025-11-03      BRL     6.1704
#> 17: 2025-11-03      CAD     1.6170
#> 18: 2025-11-03      CNY     8.1987
#> 19: 2025-11-03      HKD     8.9501
#> 20: 2025-11-03      IDR 19240.2400
#> 21: 2025-11-03      ILS     3.7567
#> 22: 2025-11-03      INR   102.2145
#> 23: 2025-11-03      KRW  1646.5300
#> 24: 2025-11-03      MXN    21.3102
#> 25: 2025-11-03      MYR     4.8353
#> 26: 2025-11-03      NZD     2.0156
#> 27: 2025-11-03      PHP    67.7580
#> 28: 2025-11-03      SGD     1.5013
#> 29: 2025-11-03      THB    37.3920
#> 30: 2025-11-03      ZAR    19.9293
#>           date currency       rate
# }