Learn R Programming

currencyapi (version 0.1.0)

convert_exchange_rates: Convert a value to a specific range of other currencies from the Currencyapi.com API. Retrieve the latest exchange rate data or for a specific historic date.

Description

Convert a value to a specific range of other currencies from the Currencyapi.com API. Retrieve the latest exchange rate data or for a specific historic date.

Usage

convert_exchange_rates(
  value,
  date = NULL,
  base_currency = NULL,
  currencies = NULL
)

Value

Returns calculated values for today or any given date for all or a specific set of currencies.

Arguments

value

(required) The value you want to convert

date

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