View source: R/convertExchangeRates.R
convert_exchange_rates | R Documentation |
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.
convert_exchange_rates(
value,
date = NULL,
base_currency = NULL,
currencies = NULL
)
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 |
Returns calculated values for today or any given date for all or a specific set of currencies.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.