get_historical_rate: Get the historical currency exchange rate on a specified date

Description Usage Arguments Value Examples

View source: R/get_historical_rate.R

Description

Get the historical currency exchange rate on a specified date

Usage

1
get_historical_rate(date, symbol = "CAD", base_symbol = "USD", access_key)

Arguments

date

the date of interest, a string in the format 'YYYY-MM-DD'

symbol

currency symbol of interest, for example "CAD"

base_symbol

currency symbol as a reference base 1, for example "USD"

access_key

access key for the fixer.io api, a string.

Value

currency exchange rate on the specified date

Examples

1
get_historical_rate('2018-01-01', 'CAD', 'EUR', access_key = Sys.getenv('ACCESS_KEY'))

UBC-MDS/FixerR documentation built on May 21, 2019, 12:03 p.m.