tradeCode2stockID: tradeCode2stockID

Description Usage Arguments Value Author(s) See Also Examples

Description

Covert the tradeCode to stockID given specific secucategory.

Usage

1
2
tradeCode2stockID(tradeCode, secuCate = 1, IDsrc = "local",
  datasrc = defaultDataSRC())

Arguments

tradeCode

Vector of character,giving the stock trading code. eg. c("600001","600002","000300")

secuCate

integer,giving the secuCategory.(1 for A equity,4 for index,...)

IDsrc

a charactor string, could be one of "local","jy","ts","wind",etc.

Value

a vector,return the stockID of specific datascr.

Author(s)

Ruifei.Yin

See Also

Other SecuMain functions: SecuCategory, SecuMarket, stockID2name, stockID2stockID, stockID2tradeCode, stockName2ID, trday.IPO, trday.unlist

Examples

1
2
tradeCode2stockID(c("600001","600002"),secuCate=1)
tradeCode2stockID(c("000001","000300"),secuCate=4)

QuantAndrew/QDataGet documentation built on May 14, 2019, 7:35 a.m.