Description Usage Arguments Value Note Examples
Given a valid stock name listed in CFM, this function returns the corresponding financial
data for the specified period (start_date
until end_date
). The returned
dataframe includes Session, Reference price, Last price, +Intraday high, + Intraday low
Number of shares traded and Capitalisation columns
1 | stock_data(stock_name, start_date, end_date)
|
stock_name |
A character vector of length one. Use |
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' |
An R data.frame
The difference between end_date
and start_date
should be less than or
equal 3 years.
1 2 | ## Not run: stock_data('COSUMAR', '01/01/2014', '31/12/2016')
## Not run: stock_data('ATLANTA', '01/01/2017', '30/06/2017')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.