QQ龙虎榜数据接口

[复制链接]
恶趣味 发表于 2016-5-4 21:11:22 | 显示全部楼层 |阅读模式 简体中文繁體中文

IANA


1、个股全部上榜日期

strUrl.Format(L"http://stock.finance.qq.com/cgi-bin/sstock/q_lhb_js?t=1&c=%06d", iStockCode);

比如浦发银行600000

网址:http://stock.finance.qq.com/cgi- ... js?t=1&c=600000

内容:

var oLhbDatas={_curpage:1,_pages:1,_num:6,_datas:[["2008-02-20","600000","浦发银行","跌幅偏离值达7%的证券","070002","--","--"],["2007-01-04","600000","浦发银行","振幅值达15%的证券","070003","--","--"],["2006-11-30","600000","N浦发","无价格涨跌幅限制","070009","--","--"],["2005-01-21","600000","浦发银行","涨幅偏离值达7%的证券","070001","--","--"],["2003-04-28","600000","浦发银行","涨幅偏离值达7%的证券","070001","--","--"],["2003-01-14","600000","浦发银行","涨幅偏离值达7%的证券","070001","--","--"]],_o:0};

解释:_num:6上榜6次,[]里面的内容依次是:日期、代码、名称、上榜原因、腾讯龙虎榜原因URL的编码、收盘价、涨跌幅。另外,存在日期相同的情况,个股单天存在多种上榜原因,目前最多好像是3个。

2、个股单日龙虎版数据情况

strUrl.Format(L"http://stock.finance.qq.com/cgi-bin/sstock/q_lhb_xx_js?c=%06d&b=%d&l=%06d",
iStockCode, iDate, iType);

比如万向钱潮、000559、2014-02-28的上榜数据

网址:http://stock.finance.qq.com/cgi- ... 140228&l=070001

内容:

var oLhbxxDatas={_zrsp:"10.88",_zdf:"10.02",_cjl:"15166.64",_cje:"1735900377.84",_datas:[["000559","万向钱潮","B","1","2014-02-28","国泰君安交易单元(227002)","143884418.0500","0.0000"],["000559","万向钱潮","B","2","2014-02-28","中信证券(浙江)有限责任公司杭州延安路证券营业部","47398875.6000","44906823.0500"],["000559","万向钱潮","B","3","2014-02-28","中银国际证券有限责任公司重庆江北证券营业部","33108327.3700","30520.0000"],["000559","万向钱潮","B","4","2014-02-28","中国银河证券股份有限公司绍兴证券营业部","27107127.7300","13132742.2900"],["000559","万向钱潮","B","5","2014-02-28","华泰证券股份有限公司南京瑞金路证券营业部","24581256.6300","2212125.5000"],["000559","万向钱潮","S","1","2014-02-28","中信证券(浙江)有限责任公司杭州延安路证券营业部","47398875.6000","44906823.0500"],["000559","万向钱潮","S","2","2014-02-28","方正证券股份有限公司深圳福中路证券营业部","51068.0000","41669599.9000"],["000559","万向钱潮","S","3","2014-02-28","信达证券股份有限公司福州远洋路证券营业部","5634897.8000","37590137.1300"],["000559","万向钱潮","S","4","2014-02-28","海通证券股份有限公司嘉兴中山西路证券营业部","2866096.0000","35897272.8400"],["000559","万向钱潮","S","5","2014-02-28","中信建投证券股份有限公司北京东直门南大街证券营业部","286133.9900","26737888.5600"]],_o:0};

解释:这日收盘价、涨跌幅、成交量、成交额,后面依次是买5到卖5的营业部,[]里面依次是:代码、名称、买多还是卖多、买卖编号、日期、营业部名称、买入金额、卖出金额。

另外,存在买5、卖5不全的情况。



数据存储:

直接存储营业部string,数据量有点小大,所以对营业部进行编码:存在两个map,从营业部到编码的map和从编码到营业部的map,如果获取龙虎榜数据的时候,存在新的营业部的时候,更新这两个map。

3、龙虎榜多日数据

http://stock.finance.qq.com/cgi- ... p;c=&b=20140331【起始日期】&e=20140404【截止日期】&p=1&l=&ol=6&o=desc

var oLhbDatas={_curpage:1,_pages:1,_num:76,_datas:[["2014-04-04","600653","申华控股","涨幅偏离值达7%的证券","070001","2.67","10.11"],["2014-04-03","002102","冠福家用","涨幅偏离值达7%的证券","070001","5.55","10.09"],["2014-04-04","600652","爱使股份","涨幅偏离值达7%的证券","070001","4.07","10.07"],["2014-04-04","000958","东方热电","涨幅偏离值达7%的证券","070001","7.45","10.07"],["2014-04-04","002569","步森股份","涨幅偏离值达7%的证券","070001","11.85","10.04"],["2014-04-04","300216","千山药机","换手率达20%的证券","070004","11.95","10.04"],["2014-04-04","300216","千山药机","涨幅偏离值达7%的证券","070001","11.95","10.04"],["2014-04-04","600789","鲁抗医药","涨幅偏离值达7%的证券","070001","5.48","10.04"],["2014-04-03","000605","渤海股份","涨幅偏离值达7%的证券","070001","15.55","10.03"],["2014-04-04","000620","新华联","涨幅偏离值达7%的证券","070001","6.58","10.03"],["2014-04-03","000807","云铝股份","涨幅偏离值达7%的证券","070001","3.39","10.03"],["2014-04-03","002229","鸿博股份","涨幅偏离值达7%的证券","070001","16.86","10.02"],["2014-04-03","300134","大富科技","连续三个交易日内涨幅偏离值累计达20%的证券","070005","21.75","10.02"],["2014-04-03","300134","大富科技","涨幅偏离值达7%的证券","070001","21.75","10.02"],["2014-04-03","600180","瑞茂通","涨幅偏离值达7%的证券","070001","11.88","10.02"],["2014-04-04","000797","中国武夷","涨幅偏离值达7%的证券","070001","7.39","10.01"],["2014-04-04","002292","奥飞动漫","涨幅偏离值达7%的证券","070001","30.58","10.01"],["2014-04-04","300205","天喻信息","涨幅偏离值达7%的证券","070001","22.09","10.00"],["2014-04-03","300291","华录百纳","涨幅偏离值达7%的证券","070001","34.99","10.00"],["2014-04-04","300291","华录百纳","涨幅偏离值达7%的证券","070001","38.49","10.00"],["2014-04-04","002617","露笑科技","换手率达20%的证券","070004","18.10","10.00"],["2014-04-04","002617","露笑科技","涨幅偏离值达7%的证券","070001","18.10","10.00"],["2014-04-04","002048","宁波华翔","涨幅偏离值达7%的证券","070001","11.50","10.00"],["2014-04-03","300200","高盟新材","涨幅偏离值达7%的证券","070001","9.60","10.00"],["2014-04-04","002617","露笑科技","连续三个交易日内涨幅偏离值累计达20%的证券","070005","18.10","10.00"],["2014-04-04","000831","五矿稀土","涨幅偏离值达7%的证券","070001","17.81","9.99"],["2014-04-03","300130","新国都","涨幅偏离值达7%的证券","070001","24.62","9.99"],["2014-04-03","002715","登云股份","涨幅偏离值达7%的证券","070001","23.02","9.99"],["2014-04-03","002715","登云股份","连续三个交易日内涨幅偏离值累计达20%的证券","070005","23.02","9.99"],["2014-04-03","002715","登云股份","换手率达20%的证券","070004","23.02","9.99"],["2014-04-03","002722","金轮股份","涨幅偏离值达7%的证券","070001","28.03","9.99"],["2014-04-03","002722","金轮股份","连续三个交易日内涨幅偏离值累计达20%的证券","070005","28.03","9.99"],["2014-04-03","002722","金轮股份","换手率达20%的证券","070004","28.03","9.99"],["2014-04-03","000693","华泽钴镍","涨幅偏离值达7%的证券","070001","11.82","9.98"],["2014-04-03","002235","安妮股份","涨幅偏离值达7%的证券","070001","13.23","9.98"],["2014-04-03","300312","邦讯技术","涨幅偏离值达7%的证券","070001","16.84","9.98"],["2014-04-03","300312","邦讯技术","连续三个交易日内涨幅偏离值累计达20%的证券","070005","16.84","9.98"],["2014-04-03","300312","邦讯技术","换手率达20%的证券","070004","16.84","9.98"],["2014-04-04","300150","世纪瑞尔","涨幅偏离值达7%的证券","070001","10.63","9.97"],["2014-04-03","600149","廊坊发展","换手率达20%的证券","070004","10.33","9.97"],["2014-04-03","600149","廊坊发展","涨幅偏离值达7%的证券","070001","10.33","9.97"],["2014-04-04","300329","海伦钢琴","涨幅偏离值达7%的证券","070001","9.73","9.97"],["2014-04-03","600401","海润光伏","涨幅偏离值达7%的证券","070001","7.77","9.14"],["2014-04-04","000823","超声电子","涨幅偏离值达7%的证券","070001","11.01","8.99"],["2014-04-03","000062","深圳华强","涨幅偏离值达7%的证券","070001","12.79","8.29"],["2014-04-04","002198","嘉应制药","涨幅偏离值达7%的证券","070001","10.18","8.15"],["2014-04-03","000511","烯碳新材","涨幅偏离值达7%的证券","070001","5.18","7.92"],["2014-04-03","002723","金莱特","换手率达20%的证券","070004","29.26","5.09"],["2014-04-03","002723","金莱特","连续三个交易日内涨幅偏离值累计达20%的证券","070005","29.26","5.09"],["2014-04-03","002640","百圆裤业","换手率达20%的证券","070004","14.80","3.92"],["2014-04-04","300312","邦讯技术","换手率达20%的证券","070004","18.52","3.89"],["2014-04-04","002504","东光微电","换手率达20%的证券","070004","11.97","2.42"],["2014-04-04","600019","宝钢股份","单只标的证券的当日融资买入数量达到当日该证券总交易量的50%以","070022","3.88","1.29"],["2014-04-04","600149","廊坊发展","换手率达20%的证券","070004","11.36","0.62"],["2014-04-03","600743","华远地产","连续三个交易日内涨幅偏离值累计达20%的证券","070005","3.58","0.56"],["2014-04-03","002725","跃岭股份","换手率达20%的证券","070004","27.95","0.39"],["2014-04-04","600769","祥龙电业","振幅值达15%的证券","070003","5.71","0.18"],["2014-04-04","002722","金轮股份","换手率达20%的证券","070004","30.83","-2.04"],["2014-04-04","002723","金莱特","换手率达20%的证券","070004","30.75","-3.71"],["2014-04-04","002715","登云股份","换手率达20%的证券","070004","25.32","-3.87"],["2014-04-03","000958","东方热电","振幅值达15%的证券","070003","7.87","-5.34"],["2014-04-04","300004","南风股份","跌幅偏离值达7%的证券","070002","48.16","-6.64"],["2014-04-04","002377","国创高新","跌幅偏离值达7%的证券","070002","11.99","-7.67"],["2014-04-03","600240","华业地产","跌幅偏离值达7%的证券","070002","4.75","-7.79"],["2014-04-03","600155","宝硕股份","跌幅偏离值达7%的证券","070002","8.73","-7.90"],["2014-04-03","300166","东方国信","跌幅偏离值达7%的证券","070002","38.50","-8.52"],["2014-04-03","600246","万通地产","跌幅偏离值达7%的证券","070002","4.03","-9.18"],["2014-04-03","002019","鑫富药业","跌幅偏离值达7%的证券","070002","28.75","-9.98"],["2014-04-04","002019","鑫富药业","跌幅偏离值达7%的证券","070002","25.88","-10.01"],["2014-04-04","002019","鑫富药业","连续三个交易日内跌幅偏离值累计达20%的证券","070006","25.88","-10.01"],["2014-04-03","510880","红利ETF","单只标的证券的当日融券卖出数量达到当日该证券总交易量的50%以","070023","--","--"],["2014-04-03","510010","治理ETF","单只标的证券的当日融资买入数量达到当日该证券总交易量的50%以","070022","--","--"],["2014-04-04","510880","红利ETF","单只标的证券的当日融券卖出数量达到当日该证券总交易量的50%以","070023","--","--"],["2014-04-03","510880","红利ETF","单只标的证券的当日融资买入数量达到当日该证券总交易量的50%以","070022","--","--"],["2014-04-04","510880","红利ETF","单只标的证券的当日融资买入数量达到当日该证券总交易量的50%以","070022","--","--"],["2014-04-03","510010","治理ETF","单只标的证券的当日融券卖出数量达到当日该证券总交易量的50%以","070023","--","--"]],_o:0};

回复

使用道具 举报

 楼主| 恶趣味 发表于 2016-5-4 21:12:38 | 显示全部楼层 简体中文繁體中文

IANA

回复 支持 反对

使用道具 举报

admin 发表于 2016-5-4 21:54:23 | 显示全部楼层 简体中文繁體中文

广州市

RE: QQ龙虎榜数据接口

http://data.eastmoney.com/DataCe ... Detail/pagesize=200,page=1,sortRule=-1,sortType=,startDate=2016-05-04,endDate=2016-05-04,gpfw=0,js=var%20data_tab_1.html?rt=24372827
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册/Sign up

本版积分规则

恶趣味 ( 粤ICP备15065270号

GMT+8, 2018-7-18 20:21

WWW.EQUWEI.COM

© 2001-2016