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-09-15      USD     1.1766
#>  2: 2025-09-15      JPY   173.3800
#>  3: 2025-09-15      BGN     1.9558
#>  4: 2025-09-15      CZK    24.3270
#>  5: 2025-09-15      DKK     7.4646
#>  6: 2025-09-15      GBP     0.8641
#>  7: 2025-09-15      HUF   389.9300
#>  8: 2025-09-15      PLN     4.2505
#>  9: 2025-09-15      RON     5.0620
#> 10: 2025-09-15      SEK    10.9115
#> 11: 2025-09-15      CHF     0.9353
#> 12: 2025-09-15      ISK   143.2000
#> 13: 2025-09-15      NOK    11.5565
#> 14: 2025-09-15      TRY    48.5585
#> 15: 2025-09-15      AUD     1.7659
#> 16: 2025-09-15      BRL     6.2769
#> 17: 2025-09-15      CAD     1.6262
#> 18: 2025-09-15      CNY     8.3795
#> 19: 2025-09-15      HKD     9.1524
#> 20: 2025-09-15      IDR 19318.2400
#> 21: 2025-09-15      ILS     3.9320
#> 22: 2025-09-15      INR   103.7145
#> 23: 2025-09-15      KRW  1633.1000
#> 24: 2025-09-15      MXN    21.6677
#> 25: 2025-09-15      MYR     4.9476
#> 26: 2025-09-15      NZD     1.9723
#> 27: 2025-09-15      PHP    67.2720
#> 28: 2025-09-15      SGD     1.5069
#> 29: 2025-09-15      THB    37.4860
#> 30: 2025-09-15      ZAR    20.3814
#>           date currency       rate
# }