get a company's market cap, data comes from NetEase
getIndex(tickers, indexData)
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.
the index information, before running getIndex, indexData needs to be loaded using getIndexData
A data table with companies and which index they are included
Data comes from www.finance.sina.com.cn and www.etnet.com.hk
www.finance.sina.com.cn www.etnet.com.hk
# NOT RUN {
indexData <- getIndexData()
getIndex(600601, indexData)
# }
Run the code above in your browser using DataLab