get_OHLCap: Get Open, High, Low and Capitalisation

Description Usage Arguments Value Note Examples

Description

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.

Usage

1
get_OHLCap(stock_name, from, to)

Arguments

stock_name

a character vector of length one. Use listed_symbols(type = "stock") to list all valid stocks names listed in CFM.

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'

Value

a dataframe

Note

The difference between to and from dates should be less than or equal 3 years.

Examples

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

blnash508/CSE documentation built on May 3, 2019, 11:52 p.m.