getIndex {gfer}R Documentation

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

Description

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

Usage

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

## Not run: 
indexData <- getIndexData()
getIndex(600601, indexData)

## End(Not run)

[Package gfer version 0.1.12 Index]