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-05 3864.47
# For multiple dates
get_currency("EUR/USD", from = Sys.Date() - 7, fill = TRUE)
#> date rate
#> 1 2025-10-29 1.165787
#> 2 2025-10-30 1.160335
#> 3 2025-10-31 1.157247
#> 4 2025-11-01 1.157247
#> 5 2025-11-02 1.157247
#> 6 2025-11-03 1.152804
#> 7 2025-11-04 1.151914
#> 8 2025-11-05 1.148897
# }
