fixer_fluctuation {fixerapi} | R Documentation |
Currency fluctuation
Description
Returns fluctuation in currency exchange rates for one or more currencies compared to the base currency over a given period of time. The maximum time frame is 365 days.
Currency fluctuation data is only available for "Professional Plus" and "Enterprise" accounts.
Usage
fixer_fluctuation(start_date, end_date, base = "EUR", symbols = NULL)
Arguments
start_date |
The start date of requested time series, in "YYYY-MM-DD"
style, or any style convertable to "YYYY-MM-DD" using |
end_date |
The end date of requested time series, in "YYYY-MM-DD"
style, or any style convertable to "YYYY-MM-DD" using |
base |
The base currency to index other currencies against. Defaults
to |
symbols |
A character vector of the symbols of currencies to return
exchange rates for, or a string for a single currency. Defaults to
|
Value
A tibble with the currency symbol, start rate, end rate, change and change percentage over the requested time period. Each currency is given its own row, with start rate, end rate, change and change percentage each in their own columns.
See Also
fixer_time_series
Examples
## Not run:
x <- fixer_fluctuation(start_date = "2018-02-25", end_date = "2018-02-26",
symbols = c("USD", "JPY"))
## End(Not run)