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 2026-01-07 3710.84
# For multiple dates
get_currency("EUR/USD", from = Sys.Date() - 7, fill = TRUE)
#> date rate
#> 1 2025-12-31 1.174646
#> 2 2026-01-01 1.174646
#> 3 2026-01-02 1.175116
#> 4 2026-01-03 1.175116
#> 5 2026-01-04 1.175116
#> 6 2026-01-05 1.170645
#> 7 2026-01-06 1.171646
#> 8 2026-01-07 1.169044
# }
