Returns 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
)

Arguments

fromCUR

base currency that you want to convert

toCUR

final currency

start_date

date

end_date

date

retried

count the number of tries

Value

data.table object

Examples

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.084693
get_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