Learn R Programming

gfer (version 0.1.12)

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

Description

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

Usage

getHisMktCap(tickers, date1, date2)

Arguments

tickers

ticker/sympol of a company, TICKERS MUST BE CHARACTERs, '006027' INSTEAD OF '6027'

date1

starting date, in the following format "20160101", means Jan 1st of 2016

date2

ending date, in the following format "20160101", if you only want one day's data, just set starting date and ending date the same day

Value

A data table with companies total capitalization and market capitalization

Details

The input date interval should have at least one work day Data comes from www.money.163.com

References

www.money.163.com

Examples

Run this code
# NOT RUN {
getHisMktCap(601857, '20161202', '20161203')
# }
# NOT RUN {

# }

Run the code above in your browser using DataLab