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-06-27      USD     1.1704
#>  2: 2025-06-27      JPY   169.2400
#>  3: 2025-06-27      BGN     1.9558
#>  4: 2025-06-27      CZK    24.7480
#>  5: 2025-06-27      DKK     7.4613
#>  6: 2025-06-27      GBP     0.8529
#>  7: 2025-06-27      HUF   398.8100
#>  8: 2025-06-27      PLN     4.2378
#>  9: 2025-06-27      RON     5.0816
#> 10: 2025-06-27      SEK    11.1183
#> 11: 2025-06-27      CHF     0.9359
#> 12: 2025-06-27      ISK   142.0000
#> 13: 2025-06-27      NOK    11.7920
#> 14: 2025-06-27      TRY    46.6818
#> 15: 2025-06-27      AUD     1.7912
#> 16: 2025-06-27      BRL     6.4119
#> 17: 2025-06-27      CAD     1.5977
#> 18: 2025-06-27      CNY     8.3939
#> 19: 2025-06-27      HKD     9.1876
#> 20: 2025-06-27      IDR 18975.9900
#> 21: 2025-06-27      ILS     3.9567
#> 22: 2025-06-27      INR   100.0780
#> 23: 2025-06-27      KRW  1592.7000
#> 24: 2025-06-27      MXN    22.0764
#> 25: 2025-06-27      MYR     4.9496
#> 26: 2025-06-27      NZD     1.9318
#> 27: 2025-06-27      PHP    66.1960
#> 28: 2025-06-27      SGD     1.4933
#> 29: 2025-06-27      THB    38.1840
#> 30: 2025-06-27      ZAR    20.8363
#>           date currency       rate
# }