Free Access Week-  Data Engineering + BI
Data engineering and BI courses are free!
Free AI Access Week from June 2-8

gfer (version 0.1.12)

getIndex: 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

Value

A data table with companies and which index they are included

Details

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

References

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

Examples

Run this code
# NOT RUN {
indexData <- getIndexData()
getIndex(600601, indexData)
# }

Run the code above in your browser using DataLab