fixer_time_series {fixerapi} | R Documentation |
Exchange rate time series
Description
Time series plans are only available on "professional" and above plans. The maximum allowed length in a single request is 365 days.
Each currency symbol is displayed in its own column, with a value relative to the base currency on the given date.
Time series data is only available for "Professional", "Professional Plus" and "Enterprise" accounts.
Usage
fixer_time_series(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 exchange rate from the base currency to the given currency symbols for each date in the requested range.
See Also
fixer_fluctuation
Examples
## Not run:
x <- fixer_time_series(start_date = "2017-04-30", end_date = "2017-06-20",
base = "GBP", symbols = c("USD", "EUR"))
## End(Not run)