Description Usage Arguments Value Note Examples
Given a valid stock name listed in CSE, this function returns the corresponding financial
data for the specified period (start_date
until end_date
). The returned
dataframe includes Date, Open, High, Low and Capitalisation.
1 | get_OHLCap(stock_name, from, to)
|
stock_name |
a character vector of length one. Use |
from |
a character vector of length one matching the format 'yyyy-mm-dd' |
to |
a character vector of length one matching the format 'yyyy-mm-dd' |
a dataframe
The difference between to
and from
dates should be less than or
equal 3 years.
1 2 | ## Not run: get_OHLCap('COSUMAR', '2014/01/01', '2016/12/31')
## Not run: get_OHLCap('ATLANTA', '2017/01/01', '2017/06/30')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.