Title
cntrade -- Downloads historic prices for a list of stock codes from Net Ease (a web site serving financial information in China, www.163.com) using Net Ease's application programming interface
Syntax
cntrade codelist, [options]
options Description ------------------------------------------------------------------------- path(foldername) output folder start(date) starting date for the prices end(date) ending date for the prices
-------------------------------------------------------------------------
codelist is a list of stock codes to be downloaded from Net Ease's application programming interface. stock codes are separated by spaces. For each valid stock code, there will be one output stata format data file containing all the trading information for that stock. the stock code will be part of the file name, with .dta as the extension. In China, stocks are identified by a six digit number, not tickers as in NYSE. Examples of Stock Codes and the name of the list firms are as following: 000001 Pingan Bank 000002 Vank Real Estate Co. Ltd. 600000 Pudong Development Bank 600005 Wuhan Steel Co. Ltd. 900901 INESA Electron Co.,Ltd.
The leading zeros in each stock code can be omitted.
path specifies the folder where stata formatted tradding data for each stock are saved The folders can be either existing folders or new folders If the folder specified does not exist, . cntrade will create it automatically
start and end specifies the start and ending date to download the trading data We recommand the user not to specify this option and download all the data available if specify, the format of the date is CYND, such as 20010123
Examples
. cntrade 600000 000001 600810, path(d:\temp\) start(19990101) end(20121231) . cntrade 600000 000001 600810, path(d:\temp\) start(19990101) end(20121231) . cntrade 600000 000001 600810 . cntrade 000002, start(19990101) . cntrade 000002, end(19990101) . cntrade 2 16
Authors
Xuan Zhang Zhongnan University of Economics and Law Wuhan, China zhangx@znufe.edu.cn
Chuntao Li Zhongnan University of Economics and Law Wuhan, China chtl@znufe.edu.cn