pedquant (version 0.1.3)

md_stock_symbol: symbol components of exchange or index

Description

md_stock_symbol returns all stock symbols of stock exchange or index.

Usage

md_stock_symbol(exchange = NULL, index = NULL)

Arguments

exchange

the available 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

Run this code
# 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