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-02-21      USD     1.0465
#>  2: 2025-02-21      JPY   157.4600
#>  3: 2025-02-21      BGN     1.9558
#>  4: 2025-02-21      CZK    25.0820
#>  5: 2025-02-21      DKK     7.4588
#>  6: 2025-02-21      GBP     0.8276
#>  7: 2025-02-21      HUF   404.6000
#>  8: 2025-02-21      PLN     4.1683
#>  9: 2025-02-21      RON     4.9773
#> 10: 2025-02-21      SEK    11.1425
#> 11: 2025-02-21      CHF     0.9420
#> 12: 2025-02-21      ISK   145.7000
#> 13: 2025-02-21      NOK    11.6290
#> 14: 2025-02-21      TRY    38.1023
#> 15: 2025-02-21      AUD     1.6394
#> 16: 2025-02-21      BRL     5.9751
#> 17: 2025-02-21      CAD     1.4856
#> 18: 2025-02-21      CNY     7.5933
#> 19: 2025-02-21      HKD     8.1327
#> 20: 2025-02-21      IDR 17077.5200
#> 21: 2025-02-21      ILS     3.7211
#> 22: 2025-02-21      INR    90.6598
#> 23: 2025-02-21      KRW  1500.1600
#> 24: 2025-02-21      MXN    21.2714
#> 25: 2025-02-21      MYR     4.6240
#> 26: 2025-02-21      NZD     1.8186
#> 27: 2025-02-21      PHP    60.6400
#> 28: 2025-02-21      SGD     1.3994
#> 29: 2025-02-21      THB    35.1830
#> 30: 2025-02-21      ZAR    19.2450
#>           date currency       rate
# }