get_IV: Get Historical Values of an INDEX

Description Usage Arguments Value Note Examples

Description

Given a valid index code, this function returns the corresponding historical data for the specified period (from until to). The returned dataframe includes Date and Value columns.

Usage

1
get_IV(index_code, from, to)

Arguments

index_code

a character vector of length one. Use listed_symbols(type = "index") to list all valid indexes in CSE.

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 should be less than or equal 3 years.

Examples

1
2
## Not run: get_IV('MASI', '2014/01/01', '2016/12/31')
## Not run: get_IV('MADEX', '2017/01/01', '2017/06/30')

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