md_stock_symbol: symbol components of exchange or index

Description Usage Arguments Examples

Description

md_stock_symbol returns all stock symbols of stock exchange or index.

Usage

1
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# 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'))

pedquant documentation built on May 27, 2019, 5:02 p.m.