get_OHLCap: Get Open, High, Low and Capitalisation

View source: R/get_OHLCap.R

get_OHLCapR Documentation

Get Open, High, Low and Capitalisation

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

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

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



bilnash/CSE documentation built on Oct. 1, 2024, 4:17 p.m.