help hkstock

Title

hkstock -- Downloads Security names and codes for Hong Kong listed companies from eastmoney.com.

Syntax

hkstock Family,
[options]

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

Family Family is Hong Kong's Securities Market category. For each valid Family, they represent different meanings of security markerts.You can enter in all uppercase or lowercase, or just capitalize the first letter.Examples of Family and the names of the Family are as following:

Stock:all Hong Kong's Securities

Main:Hong Kong Main Board Stocks

Growth:Hong Kong's Growth Enterprise Market Securities

ETF:Hong Kong Stock Connect ETF Fund

H:Stocks listed in Mainland and Hong Kong at the same time

Warrant:Hong Kong Warrants

Index:Hong Kong Index

You can download stock names and stock codes for all the listed firms if choosing hkstock 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, hkstock will create it automatically.

Examples

`"hkstock stock"'

It will extract a list of all the codes and names for the securities listed in Hong Kong.

`"hkstock Growth"'

It will extract a list of all the stock codes and stock names for all the firms listed in Hong Kong's Growth Enterprise Market.

`"hkstock WARRANT"'

It will extract a list of all the stock codes and stock names for all the Hong Kong's Warrants.

`"hkstock Warrant etf"'

It will extract a list of all the stock codes and stock names for all the Hong Kong's Warrants and ETF.

`"hkstock STOCK, path(D:/temp)"'

It will extract a list of all the codes and names for the securities listed in Hong Kong, with output files saving to folder D:/temp//stock.dta.

Authors

Chuntao LI

China Stata Club(爬虫俱乐部)

Wuhan, China

chtl@zuel.edu.cn

Xiuping Mao

China Stata Club(爬虫俱乐部)

Wuhan, China

xiuping_mao@126.com

Tianyao Luo

China Stata Club(爬虫俱乐部)

Business School, Xinjiang University, China

cnl1426@163.com