fixer_latest {fixerapi}R Documentation

Latest exchange rates

Description

Returns a tibble with the most recently available currency conversion data available from the Fixer API.

Usage

fixer_latest(base = "EUR", symbols = NULL)

Arguments

base

The base currency to index other currencies against. Defaults to "EUR". Other base currencies are only available on paid plans.

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 latest available currency exchange data.

Examples

## Not run: 

today <- fixer_latest()

today_usd <- fixer_latest(base = "USD")

today_symbols <- fixer_latest(base = "USD",
                              symbols = c("EUR", "JPY", "CAD"))


## End(Not run)

[Package fixerapi version 0.1.6 Index]