fixer_latest: Latest exchange rates

Description Usage Arguments Value Examples

View source: R/latest.R

Description

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

Usage

1

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

evanodell/fixerapi documentation built on Nov. 24, 2020, 2:43 a.m.