Currency conversion is only available on paid plans.

fixer_convert(from, to, amount = 1, date = NULL)

Arguments

from

Symbol of currency to convert from.

to

Symbol of currency to convert to.

amount

The numeric value of the from currency to convert. Defaults to 1.

date

Optional variable. A date in YYYY-MM-DD format, or any value that can be coerced to YYYY-MM-DD format with as.Date(). Defaults to NULL, which returns the latest conversion data.

Value

A list containing the value of the conversion and the exchange rate.

Examples

# NOT RUN {
x <- fixer_convert(from = "GBP", to = "JPY", amount = 25)

# }