This function lets the user download historical currency exchange rate between two currencies.
Examples
# \donttest{
# For today (or any one single date)
get_currency("USD/COP", from = Sys.Date())
#> date rate
#> 1 2025-11-26 3811.94
# For multiple dates
get_currency("EUR/USD", from = Sys.Date() - 7, fill = TRUE)
#> date rate
#> 1 2025-11-19 1.158104
#> 2 2025-11-20 1.154068
#> 3 2025-11-21 1.153536
#> 4 2025-11-22 1.153536
#> 5 2025-11-23 1.153536
#> 6 2025-11-24 1.150788
#> 7 2025-11-25 1.152074
#> 8 2025-11-26 1.157274
# }
