根据股票代码、开始时间和结束时间获取股票历史数据,返回日期、开盘价、收盘价、最高价、最低价、成交量、成交额、换手率、涨跌幅等,数据粒度为天,可通过返回参数绘制相应K线图及走势分析。
接口地址: https://api.jisuapi.com/stockhistory/list
返回格式: JSON
请求方式: GET
请求示例:https://api.jisuapi.com/stockhistory/list?classid=1&pagenum=1&pagesize=10&appkey=yourappkey
接口备注:1
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
appkey | string | 是 | appkey |
classid | int | 是 | 分类ID 1沪深股市 |
pagenum | string | 否 | 当前页,默认1 |
pagesize | string | 否 | 每页数量,默认30 |
参数 | 类型 | 说明 |
---|---|---|
name | string | 股票名称 |
code | string | 股票代码 |
pagenum | string | 当前页 |
pagesize | string | 每页数量 |
total | int | 总数 |
接口地址: https://api.jisuapi.com/stockhistory/detail
返回格式: JSON
请求方式: GET
请求示例:https://api.jisuapi.com/stockhistory/detail?code=300917&appkey=yourappkey
接口备注:无
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
appkey | string | 是 | appkey |
code | string | 股票代码 |
参数 | 类型 | 说明 |
---|---|---|
name | string | 股票名称 |
code | string | 股票代码 |
price | string | 最新价 |
maxprice | string | 最高价 |
minprice | string | 最低价 |
tradenum | string | 成交量(手) |
tradeamount | string | 成交额 |
turnoverrate | string | 换手率 |
openningprice | string | 开盘价 |
lastclosingprice | string | 昨收盘价 |
changepercent | string | 涨跌幅 |
changeamount | string | 涨跌额 |
amplitude | string | 振幅 |
quantityratio | string | 量比 |
per | string | 市盈率 |
pbr | string | 市净率 |
totalmarket | string | 总市值 |
circulationmarket | string | 流通市值 |
updatetime | string | 更新时间 |
接口地址: https://api.jisuapi.com/stockhistory/query
返回格式: JSON
请求方式: GET
请求示例:https://api.jisuapi.com/stockhistory/query?code=300917&startdate=&enddate=&appkey=yourappkey
接口备注:无
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
appkey | string | 是 | appkey |
code | string | 是 | 股票代码 |
startdate | string | 否 | 开始时间 |
enddate | string | 否 | 结束时间 |
参数 | 类型 | 说明 |
---|---|---|
name | string | 股票名称 |
code | string | 股票代码 |
startdate | string | 开始时间 |
enddate | string | 结束时间 |
stockid | string | 股票ID |
date | string | 日期 |
openningprice | string | 开盘价 |
closingprice | string | 收盘价 |
maxprice | string | 最高价 |
minprice | string | 最低价 |
tradenum | string | 成交量(手) |
tradeamount | string | 成交额 |
turnoverrate | string | 换手率 |
changepercent | string | 涨跌幅 |
changeamount | string | 涨跌额 |
amplitude | string | 振幅 |
per | string | 市盈率 |
pbr | string | 市净率 |
totalmarket | string | 总市值 |
circulationmarket | string | 流通市值 |
{
"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
}
]
}
}