get_historical_exchange_rates: Get historical exchange rates for a specific date for a...

View source: R/getHistoricalExchangeRates.R

get_historical_exchange_ratesR Documentation

Get historical exchange rates for a specific date for a single or multiple currencies.

Description

Get historical exchange rates for a specific date for a single or multiple currencies.

Usage

get_historical_exchange_rates(date, base_currency = NULL, currencies = NULL)

Arguments

date

(required) Date to retrieve historical rates from (format: 2021-12-31)

base_currency

The base currency for the conversion (e.g., "USD")

currencies

A list of comma seperated currency codes which you want to get (EUR,USD,CAD) By default all available currencies will be shown

Value

Returns exchange rates for a given time range. Generally, we provide data going back to 1999.


freecurrencyapi documentation built on May 31, 2023, 8:21 p.m.