help cnstock

Title

cnstock -- Downloads stock names and stock codes for China 's listed companies from eastmoney.com.

Syntax

cnstock exchange,
[options]

path(foldername) Specify a folder where output .dta files will be saved in

exchange exchange is Chinese Securities Market. For each valid exchange, they represent different meanings of security markerts.Examples of Exchange and the names of the Exchange are as following:

A:Shanghai, Shenzhen and Beijing A-share

SHA:Shanghai A-share

SZA:Shenzhen A-share

BJA:Beijing A-share

SZGE:Growth Enterprise Market of Shenzhen

SHSTAR:Shanghai STAR Market

B:Shanghai and Shenzhen B-share

SHB:Shanghai B-share

SZB:Shenzhen B-share

You can download stock names and stock codes for all the listed firms if choosing command all markets

path specifies the folder where the output .dta files are to be saved.

The folders can be either existed or not.

If the folder specified does not exist, cnstock will create it automatically.

Examples

`"cnstock SHA"'

It will extract a list of all the stock codes and stock names for all the A-share firms listed in Shanghai.

`"cnstock SZGE"'

It will extract a list of all the stock codes and stock names for all the firms listed in Shenzhen Exchange's Growth Enterprise Board.

`"cnstock SZA SHA"'

It will extract a list of all the stock codes and stock names for all the firms of Shenzhen's Shanghai's A-share.

`"cnstock all, path(D:/temp/)"'

It will extract a list of all the stock codes and stock names for all the the listed firms in China, whether Shanghai, Shenzhen or Beijing, A-share or B-share, etc, with output files saving to folder D:/temp/.

Authors

Chuntao LI

China Stata Club(爬虫俱乐部)

Wuhan, China

chtl@zuel.edu.cn

Zijian LI

China Stata Club(爬虫俱乐部)

Wuhan, China

jeremylee_41@163.com

Yuan XUE

China Stata Club(爬虫俱乐部)

Wuhan, China

xueyuan19920310@163.com