free_currency_api_get_historical: Historical Rates

Description Usage Arguments Details Examples

View source: R/get_rates.R

Description

https://free.currencyconverterapi.com/ API v6 API only allows 8 days at a time for free version. Rate limit for free version is 100 requests per hour.

Usage

1
2
free_currency_api_get_historical(currency_from, currency_to, start_date,
  end_date)

Arguments

currency_from

The 3-letter ISO currency code

currency_to

The 3-letter ISO currency code

start_date

YYYY-mm-dd formatted date

end_date

YYYY-mm-dd formatted date

Details

The Historical Rates function returns a data.frame with 4 variables: date – R date objects from – the base currency to – the exchange currency rate – numeric representing the exchange value at that date

Examples

1
2
3
4
## Not run: 
free_currency_api_get_historical("USD", "PHP", "2018-07-04", "2018-07-11")

## End(Not run)

raybuhr/freeCurrencyApiR documentation built on May 23, 2019, 2:48 p.m.