help cnar

Title

cnar -- Downloads historical financial data for a list of Chinese public firms from Hexun (a website providing financial information in China, http://www.hexun.com/).

Syntax

cnar codelist, [options]

path(foldername) Specifies a folder where the output .dta files will be saved.

Description

cnar is used to download historical financial data for a list of Chinese public firms from Hexun. Compared to chinafin, the variable names are more readable (use Chinese character),
the financial data are more abundant, and the comments of the financial reports are provided.

codelist is a list of stock codes to be downloaded from Hexun. They are separated by space. For each code, there will be one stata format data file as the output containing all the financial information for that stock.
The file name is same as the code, with .dta as its extension. In China, stocks are coded in six digits, not tickers as in the United States. Examples of codes and the names are as follows:

Stock Codes and Stock Names:

000001 Ping An Bank Co., Ltd.

000002 China Vanke Co., Ltd.

600000 Shanghai Pudong Development Bank Co., Ltd.

900901 Inesa Intelligent Tech Inc.

Note: The leading zeros in each code can be omitted.

path specifies the folder where the output .dta files are to be saved. The folder can be either existed or a new folder. If the folder specified does not exist, cnar will create it automatically.

Examples

`"cnar 600900"'

`"cnar 600900, path(c:/temp/)"'

`"cnar 2, path(c:/temp/)"'

`"cnar 600900 000001 2"'

`"cnar 600000 000001 2, path(c:/temp/)"'

Acknowledgments

We owe many thanks to Xuan Zhang, Chuntao Li and Cheng Pan, since their excellent work on chinafin helps a lot when designing this new code. Of course, all the errors belong to the authors.

Authors

Chuntao Li

China Stata Club(爬虫俱乐部)

Wuhan, China

chtl@zuel.edu.cn

Jinyang Li

China Stata Club(爬虫俱乐部)

Wuhan, China

ljy940704@163.com

Yuan Xue

China Stata Club(爬虫俱乐部)

Wuhan, China

xueyuan@hust.edu.cn