Description Usage Arguments Value Examples
View source: R/get_historical_rate.R
Get the historical currency exchange rate on a specified date
1 | get_historical_rate(date, symbol = "CAD", base_symbol = "USD", access_key)
|
date |
the date of interest, a string in the format 'YYYY-MM-DD' |
symbol |
currency symbol of interest, for example "CAD" |
base_symbol |
currency symbol as a reference base 1, for example "USD" |
access_key |
access key for the fixer.io api, a string. |
currency exchange rate on the specified date
1 | get_historical_rate('2018-01-01', 'CAD', 'EUR', access_key = Sys.getenv('ACCESS_KEY'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.