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-03-17      USD     1.09030
#>  2: 2025-03-17      JPY   162.26000
#>  3: 2025-03-17      BGN     1.95580
#>  4: 2025-03-17      CZK    25.03500
#>  5: 2025-03-17      DKK     7.46070
#>  6: 2025-03-17      GBP     0.84026
#>  7: 2025-03-17      HUF   399.28000
#>  8: 2025-03-17      PLN     4.18630
#>  9: 2025-03-17      RON     4.97750
#> 10: 2025-03-17      SEK    11.02250
#> 11: 2025-03-17      CHF     0.96160
#> 12: 2025-03-17      ISK   146.10000
#> 13: 2025-03-17      NOK    11.52830
#> 14: 2025-03-17      TRY    39.97800
#> 15: 2025-03-17      AUD     1.71600
#> 16: 2025-03-17      BRL     6.22380
#> 17: 2025-03-17      CAD     1.56250
#> 18: 2025-03-17      CNY     7.88690
#> 19: 2025-03-17      HKD     8.47190
#> 20: 2025-03-17      IDR 17858.46000
#> 21: 2025-03-17      ILS     3.97730
#> 22: 2025-03-17      INR    94.63100
#> 23: 2025-03-17      KRW  1579.07000
#> 24: 2025-03-17      MXN    21.68510
#> 25: 2025-03-17      MYR     4.84640
#> 26: 2025-03-17      NZD     1.88130
#> 27: 2025-03-17      PHP    62.47900
#> 28: 2025-03-17      SGD     1.45220
#> 29: 2025-03-17      THB    36.66100
#> 30: 2025-03-17      ZAR    19.77970
#>           date currency        rate
# }