get_period_rate: Get currency exchange rates for a specified period

Description Usage Arguments Value Examples

View source: R/get_period_rate.R

Description

Get daily historical currency exchange rates between two dates of your choice, with a maximum time frame of 30 days.

Usage

1
2
get_period_rate(start_date, end_date, symbol = "CAD", base_symbol = "USD",
  access_key)

Arguments

start_date

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

end_date

the end 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

a data frame of the currency exchange rates in the specified period

Examples

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

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