adjusted_data: Get Historical Data with Adjusted Prices

Description Usage Arguments Value Note Examples

View source: R/adjusted_data.R

Description

Given a valid stock name listed in CFM, this function returns the corresponding financial data including the ADJUSTED PRICES for the specified period (start_date until end_date). The returned dataframe includes SEANCE, COURS_CLOTURE, COURS_AJUSTE, EVOLUTION, QUANTITE_ECHANGE and VOLUME

Usage

1
adjusted_data(stock_name, start_date, end_date)

Arguments

stock_name

A character vector of length one. Use get_stocks() to list all valid stocks names listed in CFM

start_date

A character vector of length one matching the format 'dd/mm/yyyy'

end_date

A character vector of length one matching the format 'dd/mm/yyyy'

Value

An R data.frame

Note

The difference between end_date and start_date should be less than or equal 3 years.

Examples

1
2
## Not run: adjusted_data('COSUMAR', '01/01/2014', '31/12/2016')
## Not run: adjusted_data('ATLANTA', '01/01/2017', '30/06/2017')

blnash508/cfm documentation built on Sept. 23, 2017, 12:13 a.m.