get_exchange_rates.RdReturns the exchange rates from one currency to another from a start to an end-date
get_exchange_rates( fromCUR, toCUR, start_date = Sys.Date() - 30, end_date = Sys.Date(), retried = 0 )
| fromCUR | base currency that you want to convert |
|---|---|
| toCUR | final currency |
| start_date | date |
| end_date | date |
| retried | count the number of tries |
data.table object
get_exchange_rates('EUR', 'USD', start_date = '2020-05-12', end_date = '2020-05-13')#> date convrate #> 1: 2020-05-12 1.081257 #> 2: 2020-05-13 1.084693get_exchange_rates('EUR', 'HUF', start_date = '2020-05-12', end_date = '2020-05-13')#> date convrate #> 1: 2020-05-12 350.4384 #> 2: 2020-05-13 351.1511