getIndex | R Documentation |
get a company's market cap, data comes from NetEase
getIndex(tickers, indexData)
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 |
Data comes from www.finance.sina.com.cn and www.etnet.com.hk
A data table with companies and which index they are included
www.finance.sina.com.cn www.etnet.com.hk
## Not run:
indexData <- getIndexData()
getIndex(600601, indexData)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.