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-19 3688.75
# For multiple dates
get_currency("EUR/USD", from = Sys.Date() - 7, fill = TRUE)
#> date rate
#> 1 2026-01-12 1.162493
#> 2 2026-01-13 1.166793
#> 3 2026-01-14 1.164334
#> 4 2026-01-15 1.164510
#> 5 2026-01-16 1.160955
#> 6 2026-01-17 1.160955
#> 7 2026-01-18 1.160955
#> 8 2026-01-19 1.160227
# }
