实时行情接口

接口名称:

/quotes.php

请求方式:

GET

请求参数:

参数 必填 类型 描述
code Y string 股票代码 ,多个代码逗号分隔
t Y int 十位时间戳
token Y string 签名

请求实列

http://kline.api.shqingsi.cn/v1/quotes.php?code=sh000001,sh600000

返回数据:

{
    "error":0,
    "msg":"",
    "success":true,
    "data":[
        {
            "lastTime":"10:45:00",
            "code":"sh000001",
            "volumnPrice":"64681540000",
            "openPrice":"2933.02",
            "volumn":"6183164000",
            "circulationValue":"0",
            "type":"1",
            "peRatio":"0",
            "lowPrice":"2924.46",
            "price":"2933.21",
            "highPrice":"2942.07",
            "sell_5_s":"0",
            "sell_2_s":"0",
            "sell_1_s":"1683562000",
            "sell_4_s":"0",
            "lastDate":"2019-07-17",
            "sell_3_s":"0",
            "buy_5":"0",
            "totalValue":"0",
            "buy_1":"0",
            "isStop":"0",
            "buy_2":"0",
            "buy_3":"0",
            "buy_4":"0",
            "buy_5_s":"0",
            "buy_3_s":"0",
            "buy_4_s":"0",
            "buy_1_s":"1562913000",
            "swing":"0",
            "buy_2_s":"0",
            "sell_5":"0",
            "name":"上证指数",
            "sell_4":"0",
            "turnoverRate":"0",
            "sell_3":"0",
            "sell_2":"0",
            "closePrice":"2937.62",
            "cityNetRate":"0",
            "sell_1":"0"
        },
        {
            "lastTime":"10:44:59",
            "code":"sh600000",
            "volumnPrice":"86315000",
            "openPrice":"11.49",
            "volumn":"7482900",
            "circulationValue":"3243.17",
            "type":"0",
            "peRatio":"10.29",
            "lowPrice":"11.46",
            "price":"11.54",
            "highPrice":"11.57",
            "sell_5_s":"191000",
            "sell_2_s":"150400",
            "sell_1_s":"27900",
            "sell_4_s":"356700",
            "lastDate":"2019-07-17",
            "sell_3_s":"132700",
            "buy_5":"11.5",
            "totalValue":"3387.23",
            "buy_1":"11.54",
            "isStop":"0",
            "buy_2":"11.53",
            "buy_3":"11.52",
            "buy_4":"11.51",
            "buy_5_s":"158200",
            "buy_3_s":"73900",
            "buy_4_s":"122600",
            "buy_1_s":"4200",
            "swing":"0.95",
            "buy_2_s":"22800",
            "sell_5":"11.59",
            "name":"浦发银行",
            "sell_4":"11.58",
            "turnoverRate":"0.03",
            "sell_3":"11.57",
            "sell_2":"11.56",
            "closePrice":"11.55",
            "cityNetRate":"0.69",
            "sell_1":"11.55"
        }
    ]
}


#字段说明: 
name : 股票名称
code : 股票代码
type : 股票类型 0=普通A股 1=指数
openPrice : 开盘价格
closePrice : 昨日收盘价
price : 当前价格
highPrice : 最高价
lowPrice : 最低价
volumn : 成交量(股)
volumnPrice : 成交额
totalValue :总市值
circulationValue :流通市值
cityNetRate :市净率
peRatio :市盈率
swing : 振幅
turnoverRate :换手率
buy_1 : 买一价
buy_2 : 买二价
buy_3 : 买三价
buy_4 : 买四价
buy_5 : 买五价
buy_1_s : 买一委托量(股)
buy_2_s : 买二委托量
buy_3_s : 买三委托量
buy_4_s : 买四委托量
buy_5_s : 买五委托量
sell_1 : 卖一价
sell_2 : 卖二价
sell_3 : 卖三价
sell_4 : 卖四价
sell_5 : 卖五价
sell_1_s : 卖一委托量
sell_2_s : 卖二委托量
sell_3_s : 卖三委托量
sell_4_s : 卖四委托量
sell_5_s : 卖五委托量
lastDate : 最后更新日期
lastTime : 最后更新时间