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.

fixer_fluctuation(start_date, end_date, base = "EUR", symbols = NULL)

Arguments

start_date

The start date of requested time period.

end_date

The end date of requested time period.

base

The base currency to index other currencies against. Defaults to "EUR". Can only be changed with paid plans. A warning message will be printed if not using a paid plan, but the query will complete using Euros as the base currency.

symbols

A character vector of the symbols of currencies to return exchange rates for, or a string for a single currency. Defaults to NULL and returns all available currencies. See fixer_symbols for details on symbol options.

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.

Examples

# NOT RUN {
x <- fixer_fluctuation(start_date = "2018-02-25", end_date = "2018-02-26",
symbols = c("USD", "JPY"))

# }