md_stock_symbol returns all stock symbols of stock exchange or index.

md_stock_symbol(exchange = NULL, index = NULL)

Arguments

exchange

the avaiable stock exchanges are sse, szse, hkex, amex, nasdaq, nyse.

index

the stock index symbol provided by China Securities Index Co.Ltd (http://www.csindex.com.cn).

Examples

# NOT RUN {
# get stock symbols in a stock exchange
## specify the name of exchange
ex_syb1 = md_stock_symbol(exchange = c('sse', 'szse'))

## choose stock exchanges interactivly
ex_syb2 = md_stock_symbol()


# get stock components of a stock index (only in sse and szse)
index_syb = md_stock_symbol(index = c('000001', '000016', '000300', '000905'))

# }