getIndex: get a company's market cap, data comes from NetEase

Description Usage Arguments Details Value References Examples

View source: R/getIndex.R

Description

get a company's market cap, data comes from NetEase

Usage

1
getIndex(tickers, indexData)

Arguments

tickers

ticker/sympol of a company, MUST BE A CHARACTER, e.g., input "006600" instead of 006600 The tickers have to be FULL AND EXACT, e.g., for Shanghai exchange and Shenzhen exchange, the input must have 6 digits, and for HK exchange, it must have 5 digits. the '0' in the beginning cannot be left out.

indexData

the index information, before running getIndex, indexData needs to be loaded using getIndexData

Details

Data comes from www.finance.sina.com.cn and www.etnet.com.hk

Value

A data table with companies and which index they are included

References

www.finance.sina.com.cn www.etnet.com.hk

Examples

1
2
3
4
5
## Not run: 
indexData <- getIndexData()
getIndex(600601, indexData)

## End(Not run)

gfer documentation built on Feb. 6, 2022, 5:06 p.m.