股票信息查询

根据股票代码、开始时间和结束时间获取股票历史数据,返回日期、开盘价、收盘价、最高价、最低价、成交量、成交额、换手率、涨跌幅等,数据粒度为天,可通过返回参数绘制相应K线图及走势分析。

列表接口

接口文档

接口地址: https://api.jisuapi.com/stockhistory/list

返回格式: JSON

请求方式: GET

请求示例:https://api.jisuapi.com/stockhistory/list?classid=1&pagenum=1&pagesize=10&appkey=yourappkey

接口备注:1 =>扫码关注公众号获取APIKEY<=

请求参数

参数类型必填说明
appkeystringappkey
classidint分类ID 1沪深股市
pagenumstring当前页,默认1
pagesizestring每页数量,默认30

返回参数

参数类型说明
namestring股票名称
codestring股票代码
pagenumstring当前页
pagesizestring每页数量
totalint总数

详情接口

接口文档

接口地址: https://api.jisuapi.com/stockhistory/detail

返回格式: JSON

请求方式: GET

请求示例:https://api.jisuapi.com/stockhistory/detail?code=300917&appkey=yourappkey

接口备注:无

请求参数

参数类型必填说明
appkeystringappkey
codestring股票代码

返回参数

参数类型说明
namestring股票名称
codestring股票代码
pricestring最新价
maxpricestring最高价
minpricestring最低价
tradenumstring成交量(手)
tradeamountstring成交额
turnoverratestring换手率
openningpricestring开盘价
lastclosingpricestring昨收盘价
changepercentstring涨跌幅
changeamountstring涨跌额
amplitudestring振幅
quantityratiostring量比
perstring市盈率
pbrstring市净率
totalmarketstring总市值
circulationmarketstring流通市值
updatetimestring更新时间

历史数据接口

接口文档

接口地址: https://api.jisuapi.com/stockhistory/query

返回格式: JSON

请求方式: GET

请求示例:https://api.jisuapi.com/stockhistory/query?code=300917&startdate=&enddate=&appkey=yourappkey

接口备注:无

请求参数

参数类型必填说明
appkeystringappkey
codestring股票代码
startdatestring开始时间
enddatestring结束时间

返回参数

参数类型说明
namestring股票名称
codestring股票代码
startdatestring开始时间
enddatestring结束时间
stockidstring股票ID
datestring日期
openningpricestring开盘价
closingpricestring收盘价
maxpricestring最高价
minpricestring最低价
tradenumstring成交量(手)
tradeamountstring成交额
turnoverratestring换手率
changepercentstring涨跌幅
changeamountstring涨跌额
amplitudestring振幅
perstring市盈率
pbrstring市净率
totalmarketstring总市值
circulationmarketstring流通市值

返回示例:

列表数据

{
  "status": 0,
  "msg": "ok",
  "result": {
    "pagesize": 10,
    "pagenum": 1,
    "total": 4486,
    "classid": 1,
    "list": [
      {
        "name": "信达增利",
        "code": "166105"
      },
      {
        "name": "R003",
        "code": "201000"
      },
      {
        "name": "R007",
        "code": "201001"
      },
      {
        "name": "R014",
        "code": "201002"
      },
      {
        "name": "R028",
        "code": "201003"
      },
      {
        "name": "R091",
        "code": "201004"
      },
      {
        "name": "R182",
        "code": "201005"
      },
      {
        "name": "R001",
        "code": "201008"
      },
      {
        "name": "R002",
        "code": "201009"
      },
      {
        "name": "R004",
        "code": "201010"
      }
    ]
  }
}

详情数据

{
  "status": 0,
  "msg": "ok",
  "result": {
    "name": "C特发",
    "code": "300917",
    "classid": 1,
    "price": "40.70",
    "maxprice": "43.80",
    "minprice": "40.20",
    "tradenum": 76873,
    "tradeamount": "319857632.00",
    "turnoverrate": "36.030",
    "openningprice": "43.00",
    "lastclosingprice": "47.60",
    "changepercent": "-14.5",
    "changeamount": "-6.90",
    "amplitude": "7.56",
    "quantityratio": "1.03",
    "per": "41.91",
    "pbr": "5.36",
    "totalmarket": null,
    "circulationmarket": null,
    "updatetime": "2020-12-22 11:56:20"
  }
}

历史数据

{
  "status": 0,
  "msg": "ok",
  "result": {
    "code": "300917",
    "name": "C特发",
    "startdate": "2020-12-24",
    "enddate": "2020-12-25",
    "list": [
      {
        "stockid": 6769,
        "date": "2020-12-24",
        "openningprice": "40.10",
        "closingprice": "53.92",
        "maxprice": "54.20",
        "minprice": "40.10",
        "tradenum": 166623,
        "tradeamount": "756991472.00",
        "turnoverrate": "78.110",
        "changepercent": "32.48",
        "changeamount": "13.22",
        "amplitude": "34.64",
        "per": null,
        "pbr": null,
        "totalmarket": null,
        "circulationmarket": null
      },
      {
        "stockid": 6769,
        "date": "2020-12-25",
        "openningprice": "51.01",
        "closingprice": "44.04",
        "maxprice": "51.88",
        "minprice": "43.80",
        "tradenum": 132553,
        "tradeamount": "619542864.00",
        "turnoverrate": "62.130",
        "changepercent": "-18.32",
        "changeamount": "-9.88",
        "amplitude": "14.99",
        "per": null,
        "pbr": null,
        "totalmarket": null,
        "circulationmarket": null
      }
    ]
  }
}