get_IV: Get Historical Values of an INDEX

View source: R/get_IV.R

get_IVR Documentation

Get Historical Values of an INDEX

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

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

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



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