Skip to content

Latest commit

 

History

History
79 lines (53 loc) · 2.19 KB

实时行情API.md

File metadata and controls

79 lines (53 loc) · 2.19 KB

新浪财经实时行情API

实时数据

https://hq.sinajs.cn/list=sh000001

var hq_str_sh000001="上证指数,3006.8517,3007.3546,3005.0355,3036.1127,3003.6309,0,0,247102779,258118739395,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2019-12-27,15:01:59,00,";

https://hq.sinajs.cn/list=sh600036

var hq_str_sh600036="招商银行,38.100,38.100,37.860,38.500,37.800,37.850,37.860,35953534,1370335108.000,26700,37.850,8900,37.840,4300,37.830,7500,37.820,15900,37.810,862,37.860,32600,37.870,39400,37.880,145600,37.890,298101,37.900,2019-12-27,15:00:00,00,";

https://hq.sinajs.cn/list=sz000001

var hq_str_sz000001="平安银行,16.460,16.630,16.570,16.630,16.100,16.560,16.570,97697031,1603152786.590,142700,16.560,258100,16.550,110649,16.540,230300,16.530,60200,16.520,198971,16.570,271800,16.580,356800,16.590,328880,16.600,70876,16.610,2019-12-30,15:00:03,00";

数据依次为:

股名
开盘价
昨收价
现价
最高价
最低价
买一价
卖一价
成交量(指数是手,个股是股)
成交额(元)
买一量(股)
买一价
买二量(股)
买二价
...
买五量(股)
买五价
卖一量(股)
卖一价
...
卖五量(股)
卖五价
日期
时间
状态(00:正常,-2:未上市,-3/03:退市)

注意:部分股票末尾最后一个数据后面有逗号,部分股票末尾没有

支持多个查询目标用逗号隔开一起查询,例如:https://hq.sinajs.cn/list=sh000001,sh600036

分时数据

https://vip.stock.finance.sina.com.cn/quotes_service/view/vML_DataList.php?asc=j&symbol=sh600036&num=11

['15:00:00', '37.86', '349938']

数据是由以上item组成的list,item内数据内容依次为:

时间
成交价
成交量(股)

逐比交易明细数据

https://vip.stock.finance.sina.com.cn/quotes_service/view/CN_TransListV2.php?num=11&symbol=sh600036

trade_item_list[0] = new Array('15:00:00', '349938', '37.860', 'DOWN');

数据是js代码构建的list,Array内的数据依次为:

时间
成交量(股)
成交价
类型(UP:买,DOWN:卖,EQUAL:平)

构建list的js代码后面,额外带了当日总买入股数和总卖出股数:

var trade_INVOL_OUTVOL=[18648806.5,17304727.5];