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-07-01 3392.47
# For multiple dates
get_currency("EUR/USD", from = Sys.Date() - 7, fill = TRUE)
#> date rate
#> 1 2026-06-24 1.135344
#> 2 2026-06-25 1.136389
#> 3 2026-06-26 1.136389
#> 4 2026-06-27 1.136389
#> 5 2026-06-28 1.138446
#> 6 2026-06-29 1.141891
#> 7 2026-06-30 1.142727
#> 8 2026-07-01 1.142727
# }
