# 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'))
# }
# NOT RUN {
# }
Run the code above in your browser using DataCamp Workspace