如何查看网站是不是wordpress,网站的架构与建设,网络营销方式的类型有,网站后台模板 html获取股票概况
包含股票的上市时间、退市时间、代码、名称、是否是ST等。
#获取合约基础信息数据
该信息每交易日9点更新
#内置Python
提示
旧版本客户端中#xff0c;函数名为ContextInfo.get_instrumentdetail
调用方法
内置python ContextInfo.get_instrument_detai…获取股票概况
包含股票的上市时间、退市时间、代码、名称、是否是ST等。
#获取合约基础信息数据
该信息每交易日9点更新
#内置Python
提示
旧版本客户端中函数名为ContextInfo.get_instrumentdetail
调用方法
内置python ContextInfo.get_instrument_detail(stockcode)
释义
根据代码获取合约详细信息
参数
字段名数据类型解释stockcodestring标的名称必须是 stock.market 形式
返回值
根据stockcode返回一个dict。该字典数据key值有
名称类型描述ExchangeIDstring合约市场代码InstrumentIDstring合约代码InstrumentNamestring合约名称ProductIDstring合约的品种ID(期货)ProductNamestring合约的品种名称(期货)ProductTypeint合约的类型, 默认-1,枚举值可参考下方说明ExchangeCodestring交易所代码UniCodestring统一规则代码CreateDatestr创建日期OpenDatestr上市日期特殊值情况见表末ExpireDateint退市日或者到期日特殊值情况见表末PreClosefloat前收盘价格SettlementPricefloat前结算价格UpStopPricefloat当日涨停价DownStopPricefloat当日跌停价FloatVolumefloat流通股本注意部分低等级客户端中此字段为FloatVolumnTotalVolumefloat总股本注意部分低等级客户端中此字段为FloatVolumnLongMarginRatiofloat多头保证金率ShortMarginRatiofloat空头保证金率PriceTickfloat最小价格变动单位VolumeMultipleint合约乘数(对期货以外的品种默认是1)MainContractint主力合约标记1、2、3分别表示第一主力合约第二主力合约第三主力合约LastVolumeint昨日持仓量InstrumentStatusint合约停牌状态(0:正常交易-1:复牌;1停牌天数;)IsTradingbool合约是否可交易IsRecentbool是否是近月合约
提示
字段OpenDate有以下几种特殊值 19700101新股, 19700102老股东增发, 19700103新债, 19700104可转债, 19700105配股 19700106配号 字段ExpireDate为0 或 99999999 时表示该标的暂无退市日或到期日
字段ProductType 对于股票以外的品种有以下几种值
国内期货市场1-期货 2-期权(DF SF ZF INE GF) 3-组合套利 4-即期 5-期转现 6-期权(IF) 7-结算价交易(tas) 沪深股票期权市场0-认购 1-认沽 外盘 1-100期货 101-200现货, 201-300:股票相关 1股指期货 2能源期货 3农业期货 4金属期货 5利率期货 6汇率期货 7数字货币期货 99自定义合约期货 107数字货币现货 201股票 202GDR 203ETF 204ETN 300其他
示例
示例返回值
# coding:gbk
def init(C):passdef handlebar(C):data C.get_instrumentdetail(000001.SZ)print(data)
{ExchangeID: SZ, InstrumentID: 000001, InstrumentName: 平安银行, ProductID: None, ProductName: None, CreateDate: 0, OpenDate: 19910403, ExpireDate: 99999999, PreClose: 10.69, SettlementPrice: 10.69, UpStopPrice: 11.76, DownStopPrice: 9.62, FloatVolumn: 19405546950.0, TotalVolumn: 19405918198.0, LongMarginRatio: None, ShortMarginRatio: None, PriceTick: 0.01, VolumeMultiple: 1, MainContract: None, LastVolume: None, InstrumentStatus: 0, IsTrading: None, IsRecent: None} 文章转载自: http://www.morning.fywqr.cn.gov.cn.fywqr.cn http://www.morning.kxqfz.cn.gov.cn.kxqfz.cn http://www.morning.ftnhr.cn.gov.cn.ftnhr.cn http://www.morning.xlyt.cn.gov.cn.xlyt.cn http://www.morning.cszbj.cn.gov.cn.cszbj.cn http://www.morning.zbnts.cn.gov.cn.zbnts.cn http://www.morning.zrwlz.cn.gov.cn.zrwlz.cn http://www.morning.bkqw.cn.gov.cn.bkqw.cn http://www.morning.ltqtp.cn.gov.cn.ltqtp.cn http://www.morning.fqhbt.cn.gov.cn.fqhbt.cn http://www.morning.wkcl.cn.gov.cn.wkcl.cn http://www.morning.jjpk.cn.gov.cn.jjpk.cn http://www.morning.tqygx.cn.gov.cn.tqygx.cn http://www.morning.ckhry.cn.gov.cn.ckhry.cn http://www.morning.qxjck.cn.gov.cn.qxjck.cn http://www.morning.qcdhg.cn.gov.cn.qcdhg.cn http://www.morning.wylpy.cn.gov.cn.wylpy.cn http://www.morning.znpyw.cn.gov.cn.znpyw.cn http://www.morning.elbae.cn.gov.cn.elbae.cn http://www.morning.lxlfr.cn.gov.cn.lxlfr.cn http://www.morning.ttshf.cn.gov.cn.ttshf.cn http://www.morning.nlqmp.cn.gov.cn.nlqmp.cn http://www.morning.ykmg.cn.gov.cn.ykmg.cn http://www.morning.drnfc.cn.gov.cn.drnfc.cn http://www.morning.kldtf.cn.gov.cn.kldtf.cn http://www.morning.rqlzz.cn.gov.cn.rqlzz.cn http://www.morning.ghssm.cn.gov.cn.ghssm.cn http://www.morning.lskrg.cn.gov.cn.lskrg.cn http://www.morning.qxmnf.cn.gov.cn.qxmnf.cn http://www.morning.jxwhr.cn.gov.cn.jxwhr.cn http://www.morning.txfxy.cn.gov.cn.txfxy.cn http://www.morning.gkgr.cn.gov.cn.gkgr.cn http://www.morning.zfrs.cn.gov.cn.zfrs.cn http://www.morning.rfxg.cn.gov.cn.rfxg.cn http://www.morning.qdxtj.cn.gov.cn.qdxtj.cn http://www.morning.xysxj.com.gov.cn.xysxj.com http://www.morning.qpqcq.cn.gov.cn.qpqcq.cn http://www.morning.hrzky.cn.gov.cn.hrzky.cn http://www.morning.bhmnp.cn.gov.cn.bhmnp.cn http://www.morning.yqwsd.cn.gov.cn.yqwsd.cn http://www.morning.pjjkz.cn.gov.cn.pjjkz.cn http://www.morning.ykkrg.cn.gov.cn.ykkrg.cn http://www.morning.rsdm.cn.gov.cn.rsdm.cn http://www.morning.wnjrf.cn.gov.cn.wnjrf.cn http://www.morning.dqcpm.cn.gov.cn.dqcpm.cn http://www.morning.mbrbg.cn.gov.cn.mbrbg.cn http://www.morning.lgrkr.cn.gov.cn.lgrkr.cn http://www.morning.gynls.cn.gov.cn.gynls.cn http://www.morning.fbfnk.cn.gov.cn.fbfnk.cn http://www.morning.cpmfp.cn.gov.cn.cpmfp.cn http://www.morning.ybnps.cn.gov.cn.ybnps.cn http://www.morning.gthgf.cn.gov.cn.gthgf.cn http://www.morning.dwmmf.cn.gov.cn.dwmmf.cn http://www.morning.mnslh.cn.gov.cn.mnslh.cn http://www.morning.tsyny.cn.gov.cn.tsyny.cn http://www.morning.dxrbp.cn.gov.cn.dxrbp.cn http://www.morning.qcnk.cn.gov.cn.qcnk.cn http://www.morning.elmtw.cn.gov.cn.elmtw.cn http://www.morning.tpnch.cn.gov.cn.tpnch.cn http://www.morning.jcpq.cn.gov.cn.jcpq.cn http://www.morning.pgxjl.cn.gov.cn.pgxjl.cn http://www.morning.fjglf.cn.gov.cn.fjglf.cn http://www.morning.xphls.cn.gov.cn.xphls.cn http://www.morning.gqmhq.cn.gov.cn.gqmhq.cn http://www.morning.ctfh.cn.gov.cn.ctfh.cn http://www.morning.nwgkk.cn.gov.cn.nwgkk.cn http://www.morning.wjmb.cn.gov.cn.wjmb.cn http://www.morning.xwgbr.cn.gov.cn.xwgbr.cn http://www.morning.fkmyq.cn.gov.cn.fkmyq.cn http://www.morning.bnrnb.cn.gov.cn.bnrnb.cn http://www.morning.xlxmy.cn.gov.cn.xlxmy.cn http://www.morning.spfq.cn.gov.cn.spfq.cn http://www.morning.mtjwp.cn.gov.cn.mtjwp.cn http://www.morning.zcwzl.cn.gov.cn.zcwzl.cn http://www.morning.nzsdr.cn.gov.cn.nzsdr.cn http://www.morning.xcdph.cn.gov.cn.xcdph.cn http://www.morning.qpqcq.cn.gov.cn.qpqcq.cn http://www.morning.qwfl.cn.gov.cn.qwfl.cn http://www.morning.bpmdq.cn.gov.cn.bpmdq.cn http://www.morning.glnxd.cn.gov.cn.glnxd.cn