股票基金api接口地址:https://stockapi.com.cn
不想自己写的:https://stockapi.com.cn
相关章节说明
- 接口说明:日线macd数据查询
- 接口说明:日线kdj数据查询
- 接口说明:日线wr数据查询
- 接口说明:日线cci数据查询
- 接口说明:5,10,20日ma均线数据查询
- 接口说明:布林带boll数据查询
- 接口说明:龙虎榜查询
- 接口说明: 股票历史日线行情查询
- 接口说明:分时kdj数据
- 接口说明:分时数据获取
- 接口说明:主力资金流入流出指标
- 接口说明:量比指标
- 接口说明:抛物线SAR指标
- 接口说明:乖离率BIAS指标
- 接口说明:RSI指标
- 接口说明:神奇九转指标
- 接口说明:所有A股列表数据查询
- 接口说明:所有st股列表数据查询
- 接口说明:十大成交活跃股
- 接口说明:查询当日是否为交易日
- 接口说明:查询上证指数
- 接口说明:查询深圳成指
- 接口说明:查询上证50
- 接口说明:基金分时数据
- 接口说明:所有基金列表查询
- 接口说明:行业板块个股列表
- 接口说明:行业板块代码
- 接口说明:板块历史资金流
- 接口说明:涨停股池
- 接口说明:强势股池
- 接口说明:次新股池
- 接口说明:炸板股池
- 接口说明:跌停股池
接口说明:日线macd数据查询
地址:https://stockapi.com.cn/v1/quota/macd
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
code | string | 600004 | 是 | 股票代码 | |
date | string | 2021-10-17 | 是 | 时间 | |
cycle | int | 9 | 9 | 否 | 周期 |
longCycle | int | 26 | 26 | 否 | 长周期 |
shortCycle | int | 12 | 12 | 否 | 短周期 |
vipCycleFlag | int | 0 | 0 | 否 | 是否需要返回所有周期数据,1:是;0:否。有token用户可以传1 |
请求示例:
https://stockapi.com.cn/v1/quota/macd?code=600004&cycle=9&date=2021-10-17&longCycle=26&shortCycle=12&vipCycleFlag=0
返回值说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "600004.SH", desc: "" },
{ name: "- date", type: "string", demo: "2021-10-22", desc: "交易日期" },
{ name: "- DEA", type: "int", demo: "0.39808748104648", desc: "DEA值" },
{ name: "- DIFF", type: "int", demo: "0.46470061143322", desc: "DIFF值" },
{ name: "- MACD", type: "int", demo: "0.13322626077348", desc: "MACD值" }
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": {
"date": "2021-10-17",
"DEA": 0.39808748104648,
"DIFF": 0.46470061143322,
"MACD": 0.13322626077348
}
}
接口说明:日线kdj数据查询
地址:https://stockapi.com.cn/v1/quota/kdj
请求示例:
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
code | string | 600004 | 是 | 股票代码 | |
date | string | 2021-10-17 | 是 | 时间 | |
cycle | int | 9 | 9 | 否 | 周期1 |
cycle1 | int | 3 | 3 | 否 | 周期2 |
cycle2 | int | 3 | 3 | 否 | 周期3 |
vipCycleFlag | int | 0 | 0 | 否 | 是否需要返回所有周期数据,1:是;0:否。有token用户可以传1 |
https://stockapi.com.cn/v1/quota/kdj?calculationCycle=100&code=600004&cycle=9&cycle1=3&cycle2=3&date=2022-06-20&vipCycleFlag=0
返回值说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "600004.SH", desc: "" },
{ name: "- api_code", type: "string", demo: "600004.SH", desc: "股票代码" },
{ name: "- date", type: "string", demo: "2021-10-22", desc: "交易日期" },
{ name: "- k", type: "int", demo: "74.026411185765", desc: "k值" },
{ name: "- d", type: "int", demo: "74.026411185765", desc: "d值" },
{ name: "- j", type: "int", demo: "75.970593695305", desc: "j值" }
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": {
"date": "2021-10-17",
"d": 74.026411185765,
"j": 75.970593695305,
"k": 74.674472022278
}
}
接口说明:日线wr数据查询
地址:https://stockapi.com.cn/v1/quota/wr
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
code | string | 600004 | 是 | 股票代码 | |
date | string | 2021-10-17 | 是 | 时间 | |
cycle1 | int | 10 | 10 | 否 | 周期1 |
cycle2 | int | 6 | 6 | 否 | 周期2 |
rehabilitation | int | 100 | 100 | 否 | 复权方式:100-不复权;101-后复权;102-前复权 |
calculationCycle | int | 100 | 100 | 否 | 周期:100-日;101-周;102-月;103-季;104-半年;105-年 |
请求示例:
https://stockapi.com.cn/v1/quota/wr?code=600004&cycle1=10&cycle2=6&date=2021-10-17&rehabilitation=100&calculationCycle=100
返回值说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "600004.SH", desc: "" },
{ name: "- api_code", type: "string", demo: "600004.SH", desc: "股票代码" },
{ name: "- date", type: "string", demo: "2021-10-22", desc: "交易日期" },
{ name: "- wr2", type: "int", demo: "29.770992366412", desc: "wr2值" },
{ name: "- wr1", type: "int", demo: "23.493975903614", desc: "wr1值" }
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": {
"date": "2021-10-17",
"wr2": 29.770992366412,
"wr1": 23.493975903614
}
}
接口说明:日线cci数据查询
地址:https://stockapi.com.cn/v1/quota/cci
请求示例:
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
code | string | 600004 | 是 | 股票代码 | |
date | string | 2021-10-17 | 是 | 时间 | |
cycle | int | 14 | 14 | 否 | 周期 |
vipCycleFlag | int | 0 | 0 | 否 | 是否需要返回所有周期数据,1:是;0:否。有token用户可以传1 |
https://stockapi.com.cn/v1/quota/cci?code=600004&cycle=14&date=2021-10-17&vipCycleFlag=0
返回值说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "600004.SH", desc: "" },
{ name: "- api_code", type: "string", demo: "600004.SH", desc: "股票代码" },
{ name: "- date", type: "string", demo: "2021-10-22", desc: "交易日期" },
{ name: "- cci", type: "int", demo: "162.11800884105", desc: "cci值" }
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": {
"date": "2021-10-17",
"cci": 162.11800884105
}
}
接口说明:5,10,20日ma均线数据查询
地址:https://stockapi.com.cn/v1/quota/ma
请求示例:
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
code | string | 600004 | 是 | 股票代码 | |
date | string | 2021-10-17 | 是 | 时间 | |
ma | int | 5,10,20 | 5,10,20 | 否 | 周期,逗号分隔符必须为英文,默认值ma=5,10,20 |
rehabilitation | int | 100 | 100 | 否 | 复权方式:100-不复权;101-后复权;102-前复权 |
calculationCycle | int | 100 | 100 | 否 | 周期:100-日;101-周;102-月;103-季;104-半年;105-年 |
请求示例:
https://stockapi.com.cn/v1/quota/ma?code=600004&date=2021-10-17&ma=5,10,20&rehabilitation=100&calculationCycle=100
返回值说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "600004.SH", desc: "" },
{ name: "- api_code", type: "string", demo: "600004.SH", desc: "股票代码" },
{ name: "- date", type: "string", demo: "2021-10-22", desc: "交易日期" },
{ name: "- ma5", type: "int", demo: "11.646", desc: "ma5值" },
{ name: "- ma10", type: "int", demo: "10.989", desc: "ma10值" },
{ name: "- ma20", type: "int", demo: "11.294", desc: "ma20值" },
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": {
"date": "2021-10-17",
"ma5": 11.646,
"ma10": 10.989,
"ma20": 11.294
}
}
接口说明:布林带boll数据查询
地址:https://stockapi.com.cn/v1/quota/boll
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
code | string | 600004 | 是 | 股票代码 | |
date | string | 2021-10-17 | 是 | 时间 | |
cycle | int | 26 | 26 | 否 | 周期,默认值cycle=26 |
bandwidth | int | 2 | 2 | 否 | 周期,逗号分隔符必须为英文,默认值ma=5,10,20 |
rehabilitation | int | 100 | 100 | 否 | 复权方式:100-不复权;101-后复权;102-前复权 |
calculationCycle | int | 100 | 100 | 否 | 周期:100-日;101-周;102-月;103-季;104-半年;105-年 |
请求示例:
https://stockapi.com.cn/v1/quota/boll?bandwidth=2&code=600004&cycle=26&date=2021-10-17&rehabilitation=100&calculationCycle=100
返回值说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "600004.SH", desc: "" },
{ name: "- api_code", type: "string", demo: "600004.SH", desc: "股票代码" },
{ name: "- date", type: "string", demo: "2021-10-22", desc: "交易日期" },
{ name: "- UPPER", type: "int", demo: "11.930630802942", desc: "上轨" },
{ name: "- LOWER", type: "int", demo: "9.6909076585968", desc: "下轨" },
{ name: "- MID", type: "int", demo: "10.810769230769", desc: "中轨" },
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": {
"date": "2021-10-17",
"UPPER": 11.930630802942,
"LOWER": 9.6909076585968,
"MID": 10.810769230769
}
}
接口说明:龙虎榜查询
地址:https://stockapi.com.cn/v1/base/dragonTiger
请求地址:
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
date | string | 2022-09-02 | 是 | 时间 |
https://stockapi.com.cn/v1/base/dragonTiger?date=2022-09-02
返回值说明:
[
{ name: "data", type: "Object", demo: "", desc: "" },
{ name: "- totalVolume", type: "Object[]", demo: "", desc: "总成交量" },
{ name: "- reason", type: "Object[]", demo: "", desc: "上榜原因" },
{ name: "- chg", type: "Object[]", demo: "", desc: "涨跌幅%" },
{ name: "- endDate", type: "Object[]", demo: "", desc: "截至日期" },
{ name: "- sellAmountRatio", type: "Object[]", demo: "", desc: "占总成交比列%" },
{ name: "- topAmount", type: "Object[]", demo: "", desc: "龙虎榜成交额(万元)" },
{ name: "- buyAmountRatio", type: "Object[]", demo: "", desc: "占总成交额比列%%" },
{ name: "- totalAmount", type: "Object[]", demo: "", desc: "总成交额(万元)" },
{ name: "- thsCode", type: "Object[]", demo: "", desc: "股票代码" },
{ name: "- buyAmount", type: "Object[]", demo: "", desc: "买入额(万元)" },
{ name: "- sellAmount", type: "Object[]", demo: "", desc: "卖出额(万元)" },
{ name: "- name", type: "Object[]", demo: "", desc: "名称" },
{ name: "- close", type: "Object[]", demo: "", desc: "收盘价" },
{ name: "- turnover", type: "Object[]", demo: "", desc: "换手率" }
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": {
"totalVolume": [
619.2731,
2032.5733
],
"reason": [
"有价格涨跌幅限制的日收盘价格涨幅达到15%的证券",
"日换手率达20%的证券"
],
"chg": [
15.8005,
-10.0061
],
"endDate": [
"2021/12/24",
"2021/12/24"
],
"sellAmountRatio": [
27.84909855895833,
7.857897026767147
],
"topAmount": [
7954.78504,
4661.218594
],
"buyAmountRatio": [
13.39658117636407,
7.352136536688325
],
"totalAmount": [
19286.3473,
30645.6825,
],
"thsCode": [
"688555.SH",
"605577.SH"
],
"buyAmount": [
2583.711172,
2253.11242
],
"sellAmount": [
5371.073868,
2408.106174
],
"name": [
"泽达易盛",
"龙版传媒"
],
"close": [
33.2,
14.84
],
"turnover": [
15.1771,
45.7329
]
}
}
接口说明: 股票历史日线行情查询
地址:https://stockapi.com.cnv1/base/day
请求示例:
https://stockapi.com.cn/v1/base/day?token=你的token&code=600004&endDate=2021-10-15&startDate=2021-10-10
返回值说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "", desc: "" },
{ name: "- turnoverRatio", type: "Object[]", demo: "", desc: "换手率" },
{ name: "- amount", type: "Object[]", demo: "", desc: "成交额" },
{ name: "- totalCapital", type: "Object[]", demo: "", desc: "总市值" },
{ name: "- avgPrice", type: "Object[]", demo: "", desc: "均价" },
{ name: "- change", type: "Object[]", demo: "", desc: "涨跌" },
{ name: "- totalShares", type: "Object[]", demo: "", desc: "总股本" },
{ name: "- high", type: "Object[]", demo: "", desc: "最高价" },
{ name: "- pb", type: "Object[]", demo: "", desc: "PB市净率" },
{ name: "- pcf", type: "Object[]", demo: "", desc: "pcf市现率" },
{ name: "- preClose", type: "Object[]", demo: "", desc: "前收盘价" },
{ name: "- low", type: "Object[]", demo: "", desc: "最低价" },
{ name: "- pe", type: "Object[]", demo: "", desc: "pe市净率" },
{ name: "- transactionAmount", type: "Object[]", demo: "", desc: "成交笔数" },
{ name: "- changeRatio", type: "Object[]", demo: "", desc: "涨跌幅" },
{ name: "- pe_ttm", type: "Object[]", demo: "", desc: "市盈率TTM" },
{ name: "- close", type: "Object[]", demo: "", desc: "收盘价" },
{ name: "- open", type: "Object[]", demo: "", desc: "开盘价" },
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": {
"turnoverRatio": [
1.3515283790397,
0.90478985122553,
0.87957988512939,
3.4004355789226,
1.9688275317605
],
"amount": [
322565151,
215914890,
205439432,
848702826,
491919337
],
"totalCapital": [
27406597717.14,
27169925888.84,
26767583780.73,
28258616299.02,
28211281933.36
],
"avgPrice": [
11.533590115139,
11.532065744585,
11.287057916162,
12.061278166355,
12.074202569419
],
"change": [
0.2,
-0.1,
-0.17,
0.63,
-0.02
],
"totalShares": [
2366718283,
2366718283,
2366718283,
2366718283,
2366718283
],
"volume": [
27967454,
18723002,
18201327,
70365911,
40741352
],
"high": [
11.7,
11.75,
11.48,
12.31,
12.3
],
"pb": [
1.5025178327835,
1.489542721965,
1.4674850335736,
1.5492282317302,
1.5466332095665
],
"pcf": [
67.90695920309,
67.320543320507,
66.323636320117,
70.018056380388,
69.900773203872
],
"preClose": [
11.38,
11.58,
11.48,
11.31,
11.94
],
"low": [
11.25,
11.4,
11.01,
11.31,
11.87
],
"pe": [
-41.936428946563,
-41.574283618872,
-40.958636561798,
-43.240152126249,
-43.167723060711
],
"transactionAmount": [
24259,
19162,
16251,
49335,
37860
],
"changeRatio": [
1.7574692442882,
-0.86355785837651,
-1.4808362369338,
5.5702917771883,
-0.16750418760469
],
"pe_ttm": [
-62.144628202481,
-61.607973382079,
-60.695660187397,
-64.076585555926,
-63.969254591845
],
"close": [
11.58,
11.48,
11.31,
11.94,
11.92
],
"open": [
11.35,
11.5,
11.43,
11.34,
11.95
]
}
}
接口说明:分时kdj数据
地址:https://stockapi.com.cn/v1/base/minKdj
请求示例:
https://stockapi.com.cn/v1/base/minKdj?code=600004&cycle=9&cycle1=3&cycle2=3
请求参数说明:
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
code | string | 600004.SH | 是 | 股票代码 | |
cycle | int | 9 | 9 | 否 | 周期 |
cycle1 | int | 3 | 3 | 否 | 周期1 |
cycle2 | int | 3 | 3 | 否 | 周期2 |
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "600004.SH", desc: "" },
{ name: "- api_code", type: "string", demo: "601088.SH", desc: "股票代码" },
{ name: "- date", type: "int", demo: "10.83", desc: "跌停价" },
{ name: "- k_list", type: "Object[]", demo: "", desc: "k_list" },
{ name: "- d_list", type: "Object[]", demo: "", desc: "d_list" },
{ name: "- j_list", type: "Object[]", demo: "", desc: "j_list" }
]
返回示例:
{
"code":20000,
"msg":"success",
"data":{
"date":"2022-01-14 14:15:00",
"k_list":{
"errmsg":null,
"time":Array[196],
"table":Object{...}
},
"d_list":{
"errmsg":null,
"time":Array[196],
"table":Object{...}
},
"j_list":{
"errmsg":null,
"time":Array[196],
"table":Object{...}
}
}
}
接口说明:分时数据获取
地址:https://stockapi.com.cn/v1/base/min
请求示例:
https://stockapi.com.cn/v1/base/min?code=600004
请求参数说明:
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
code | string | 600004 | 是 | 股票代码 |
返回参数说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "600004.SH", desc: "" },
{ name: "- downLimit", type: "int", demo: "10.83", desc: "跌停价" },
{ name: "- turnoverRatio", type: "int", demo: "0.666580112006757", desc: "交易日期" },
{ name: "- totalCapital", type: "int", demo: "28542622492.98", desc: "总市值" },
{ name: "- latestAmount", type: "int", demo: "1313334", desc: "现额" },
{ name: "- avgPrice", type: "int", demo: "12.022336462955241", desc: "均价" },
{ name: "- suspensionFlag", type: "string", demo: "E110", desc: "停牌标志" },
{ name: "- chg_1min", type: "int", demo: "0.002494", desc: "一分钟涨跌幅" },
{ name: "- chg_3min", type: "int", demo: "0.002494", desc: "3分钟涨跌幅" },
{ name: "- high", type: "int", demo: "12.16", desc: "最高价" },
{ name: "- preClose", type: "int", demo: "12.03", desc: "前收盘价" },
{ name: "- low", type: "int", demo: "11.9", desc: "最低价" },
{ name: "- chg_5d", type: "int", demo: "0.029889", desc: "5日涨跌幅" },
{ name: "- changeRatio", type: "int", demo: "0.2493765586035007", desc: "涨跌幅" },
{ name: "- latest", type: "int", demo: "12.06", desc: "最新价" },
{ name: "- sellVolume", type: "int", demo: "6609133", desc: "内盘" },
{ name: "- amount", type: "int", demo: "165832250", desc: "成交额" },
{ name: "- change", type: "int", demo: "0.0300000000000011", desc: "涨跌" },
{ name: "- tradeDate", type: "string", demo: "2022-01-01", desc: "交易日期" },
{ name: "- latestVolume", type: "int", demo: "108900", desc: "现量" },
{ name: "- riseDayCount", type: "string", demo: "3", desc: "连涨天数" },
{ name: "- totalShares", type: "int", demo: "2366718283", desc: "总股本" },
{ name: "- volume", type: "int", demo: "137936", desc: "成交量" },
{ name: "- tradeTime", type: "string", demo: "08:11:00", desc: "交易时间" },
{ name: "- pb", type: "int", demo: "1.564202", desc: "市净率" },
{ name: "- tradeStatus", type: "string", demo: "交易", desc: "交易状态" },
{ name: "- upperLimit", type: "int", demo: "13.23", desc: "涨停价" },
{ name: "- open", type: "int", demo: "12.01", desc: "开盘价" },
{ name: "- buyVolume", type: "int", demo: "7184546", desc: "外盘" },
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": {
"downLimit": 10.83,
"turnoverRatio": 0.666580112006757,
"totalCapital": 28542622492.98,
"latestAmount": 1313334,
"avgPrice": 12.022336462955241,
"suspensionFlag": "E110",
"chg_1min": 0.002494,
"chg_3min": 0.002494,
"high": 12.16,
"preClose": 12.03,
"low": 11.9,
"chg_5d": 0.029889,
"changeRatio": 0.2493765586035007,
"latest": 12.06,
"sellVolume": 6609133,
"amount": 165832250,
"change": 0.0300000000000011,
"tradeDate": "2022-01-01",
"latestVolume": 108900,
"riseDayCount": "3",
"totalShares": 2366718283,
"volume": 137936,
"tradeTime": "08:11:00",
"pb": 1.564202,
"tradeStatus": "交易",
"upperLimit": 13.23,
"buyVolume": 7184546,
"open": 12.01
}
}
接口说明:主力资金流入流出指标
地址:https://stockapi.com.cn/v1/quota/capital
请求示例:
https://stockapi.com.cn/v1/quota/capital?code=600004&date=2021-10-10
请求参数说明:
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
code | string | 600004 | 是 | 股票代码 | |
date | string | 2021-10-10 | 是 | 交易时间 |
返回参数说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "", desc: "" },
{name: "- possitive_buy_middle_vol_stock", type: "int" demo: "4543539", desc: "被动买入中单量" },
{name: "- possitive_sell_large_amt_stock", type: "int" demo: "88070440", desc: "主动卖出特大单金额" },
{name: "- main_inflow_rate_stock", type: "int" demo: "7.6847328030607", desc: "主力净流入率(量)" },
{name: "- small_sell_amt_stock", type: "int" demo: "263132044", desc: "小单卖出金额" },
{name: "- active_sell_vol_stock", type: "int" demo: "", desc: "主动卖出量" },
{name: "- possitive_sell_middle_amt_stock", type: "int" demo: "186203420", desc: "主动卖出中单金额" },
{name: "- possitive_buy_large_vol_stock", type: "int" demo: "2408651", desc: "被动买入特大单量" },
{name: "- dde_5d_stock", type: "int" demo: "-24127320.8", desc: " " },
{name: "- net_active_buy_amt_ratio_stock", type: "int" demo: "0.027267180972359", desc: "净主动买入额占比" },
{name: "- net_active_buy_vol_ratio_stock", type: "int" demo: "0.022620809250912", desc: "净主动买入量占比" },
{name: "- dde_stock", type: "int" demo: "68801626", desc: "DDE大单净额" },
{name: "- possitive_buy_main_amt_stock", type: "int" demo: "90595073", desc: "被动买入大单金额" },
{name: "- active_sellsmall_vol_stock", type: "int" demo: "5091923", desc: " 主动卖出小单量" },
{name: "- dde_20d_stock", type: "int" demo: "23652311", desc: " " },
{name: "- active_sell_large_vol_stock", type: "int" demo: "1610195", desc: "主动卖出特大单量" },
{name: "- active_sell_large_amt_stock", type: "int" demo: "36521679", desc: " 主动卖出特大单金额" },
{name: "- possitive_sell_middle_vol_stock", type: "int" demo: "8251052", desc: "主动卖出中单量" },
{name: "- outflow_amt_stock", type: "int" demo: "", desc: "流出额" },
{name: "- possitive_buy_middle_amt_stock", type: "int" demo: "102572109", desc: "被动买入中单金额" },
{name: "- inflow_rate_stock", type: "int" demo: "7.6817274621316", desc: "主力净流入率(金额)" },
{name: "- active_sell_amt_stock", type: "int" demo: "", desc: "主动卖出额" },
{name: "- small_sell_vol_stock", type: "int" demo: "11653067", desc: "小单卖出量" },
{name: "- net_active_buy_vol_rate_stock", type: "int" demo: "11.333423945181", desc: "净主动买入率(量)" },
{name: "- possitive_sell_main_vol_stock", type: "int" demo: "3367579", desc: "被动卖出大单金额" },
{name: "- active_buy_small_vol_stock", type: "int" demo: "7020187", desc: " 主动买入小 单量" },
{name: "- active_sell_main_amt_stock", type: "int" demo: "63302940", desc: " 主动卖出大单金额" },
{name: "- active_sell_main_vol_stock", type: "int" demo: "2798782", desc: " 主动卖出大单量" },
{name: "- main_net_inflow_vol_ratio_stock", type: "int" demo: "0.015338248681342", desc: "主力净流入占比" },
{name: "- net_infow_stock", type: "int" demo: "3047483", desc: "主力净流入量" },
{name: "- active_buy_small_amt_stock", type: "int" demo: "158539120", desc: " 主动买入小单金额" },
{name: "- active_sell_middle_vol_stock", type: "int" demo: "8080055", desc: " 主动卖出中单量" },
{name: "- dde_net_vol_stock", type: "int" demo: "0.018479631229495", desc: " DDE大单净量" },
{name: "- net_active_buy_vol_stock", type: "int" demo: "", desc: "主动买入量" },
{name: "- active_buy_main_vol_stock", type: "int" demo: "4382009", desc: "主动买入大单量" },
{name: "- outflow_vol_stock", type: "int" demo: "", desc: "流出量" },
{name: "- small_buy_amt_stock", type: "int" demo: "308166389", desc: "小单买入金额" },
{name: "- possitive_sell_main_amt_stock", type: "int" demo: "75989823", desc: "被动卖出大单金额" },
{name: "- main_net_inflow_amt_ratio_stock", type: "int" demo: "0.018526028366353", desc: "主力净流入额占比" },
{name: "- dde_10d_stock", type: "int" demo: "365125661.2", desc: " " },
{name: "- active_sellsmall_amt_stock", type: "int" demo: "114937525", desc: " 主动卖出小单金额" },
{name: "- active_buy_main_amt_stock", type: "int" demo: "98962053", desc: "主动买入大单金额" },
{name: "- net_buy_vol_stock", type: "int" demo: "", desc: "净买入量" },
{name: "- net_active_buy_amt_stock", type: "int" demo: "", desc: "主动买入额" },
{name: "- possitive_sell_large_vol_stock", type: "int" demo: "3895600", desc: "被动卖出特大单量" },
{name: "- inflow_amt_stock", type: "int" demo: "", desc: "流入额" },
{name: "- small_buy_vol_stock", type: "int" demo: "13644690", desc: "小单买入量" },
{name: "- active_sell_middle_amt_stock", type: "int" demo: "182432700", desc: "主动卖出中单金额" },
{name: "- net_active_buy_amt_rate_stock", type: "int" demo: "11.306203831076", desc: "净主动买入率" },
{name: "- possitive_buy_main_vol_stock", type: "int" demo: "4004262", desc: " 被动买入大单量" },
{name: "- inflow_vol_stock", type: "int" demo: "", desc: "流入量" },
{name: "- active_buy_large_amt_stock", type: "int" demo: "88729990", desc: "主动买入特大金额" },
{name: "- active_buy_vol_stock", type: "int" demo: "", desc: " " },
{name: "- active_buy_large_vol_stock", type: "int" demo: "3924717", desc: "主动买入特大单量" },
{name: "- net_buy_amt_stock", type: "int" demo: "", desc: "净买入额" },
{name: "- active_buy_middle_amt_stock", type: "int" demo: "152228040", desc: "主动买入中单金额" },
{name: "- active_buy_middle_vol_stock", type: "int" demo: "6748462", desc: " 主动买入中单量" },
{name: "- possitive_buy_large_amt_stock", type: "int" demo: "54399392", desc: "被动买入特大单金额" },
{name: "- active_buy_amt_stock", type: "int" demo: "", desc: " " },
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": {
"possitive_buy_middle_vol_stock": 4543539,
"possitive_sell_large_amt_stock": 88070440,
"main_inflow_rate_stock": 7.6847328030607,
"small_sell_amt_stock": 263132044,
"active_sell_vol_stock": null,
"possitive_sell_middle_amt_stock": 186203420,
"possitive_buy_large_vol_stock": 2408651,
"dde_5d_stock": -24127320.8,
"net_active_buy_amt_ratio_stock": 0.027267180972359,
"net_active_buy_vol_ratio_stock": 0.022620809250912,
"dde_stock": 68801626,
"possitive_buy_main_amt_stock": 90595073,
"active_sellsmall_vol_stock": 5091923,
"dde_20d_stock": 23652311,
"active_sell_large_vol_stock": 1610195,
"active_sell_large_amt_stock": 36521679,
"possitive_sell_middle_vol_stock": 8251052,
"outflow_amt_stock": null,
"possitive_buy_middle_amt_stock": 102572109,
"inflow_rate_stock": 7.6817274621316,
"active_sell_amt_stock": null,
"small_sell_vol_stock": 11653067,
"net_active_buy_vol_rate_stock": 11.333423945181,
"possitive_sell_main_vol_stock": 3367579,
"active_buy_small_vol_stock": 7020187,
"active_sell_main_amt_stock": 63302940,
"active_sell_main_vol_stock": 2798782,
"main_net_inflow_vol_ratio_stock": 0.015338248681342,
"net_infow_stock": 3047483,
"active_buy_small_amt_stock": 158539120,
"active_sell_middle_vol_stock": 8080055,
"dde_net_vol_stock": 0.018479631229495,
"net_active_buy_vol_stock": null,
"active_buy_main_vol_stock": 4382009,
"outflow_vol_stock": null,
"small_buy_amt_stock": 308166389,
"possitive_sell_main_amt_stock": 75989823,
"main_net_inflow_amt_ratio_stock": 0.018526028366353,
"dde_10d_stock": 365125661.2,
"active_sellsmall_amt_stock": 114937525,
"active_buy_main_amt_stock": 98962053,
"net_buy_vol_stock": null,
"net_active_buy_amt_stock": null,
"possitive_sell_large_vol_stock": 3895600,
"inflow_amt_stock": null,
"small_buy_vol_stock": 13644690,
"active_sell_middle_amt_stock": 182432700,
"net_active_buy_amt_rate_stock": 11.306203831076,
"possitive_buy_main_vol_stock": 4004262,
"inflow_vol_stock": null,
"active_buy_large_amt_stock": 88729990,
"active_buy_vol_stock": null,
"active_buy_large_vol_stock": 3924717,
"net_buy_amt_stock": null,
"active_buy_middle_amt_stock": 152228040,
"active_buy_middle_vol_stock": 6748462,
"possitive_buy_large_amt_stock": 54399392,
"active_buy_amt_stock": null
}
}
接口说明:量比指标
地址:https://stockapi.com.cn/v1/quota/lb
请求示例:
https://stockapi.com.cn/v1/quota/lb?code=600004&cycle=5&date=2021-10-10
请求参数说明:
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
code | string | 600004 | 是 | 股票代码 | |
date | string | 2021-10-10 | 是 | 交易时间 | |
cycle | string | 5 | 是 | 周期,默认值cycle=5 |
返回参数说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "", desc: "" },
{ name: "- vol_ratio_stock", type: "int" demo: "0.68079198966459", desc: "量比" },
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": {
"vol_ratio_stock": 0.68079198966459
}
}
接口说明:抛物线SAR指标
地址:https://stockapi.com.cn/v1/quota/sar
请求示例:
https://stockapi.com.cn/v1/quota/sar?code=600004&cycle=4&date=2021-10-10&limit=10&step=2
请求参数说明:
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
code | string | 600004 | 是 | 股票代码 | |
date | string | 2021-10-10 | 是 | 交易时间 | |
cycle | string | 4 | 否 | 周期,默认值cycle=4 | |
step | string | 2 | 否 | 步长,默认值step=2 | |
limit | string | 10 | 否 | 极值,默认值limit=10 | |
返回参数说明: |
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "", desc: "" },
{ name: "- sar_stock", type: "int" demo: "10.29882338944", desc: "sar值" },
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": {
"sar_stock": 10.29882338944
}
}
接口说明:乖离率BIAS指标
地址:https://stockapi.com.cn/v1/quota/bias
请求示例:
https://stockapi.com.cn/v1/quota/bias?code=600004&cycle1=6&cycle2=12&cycle3=24&date=2021-10-10
请求参数说明:
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
code | string | 600004 | 是 | 股票代码 | |
date | string | 2021-10-10 | 是 | 交易时间 | |
cycle1 | string | 6 | 6 | 否 | 周期1,默认值cycle1=6 |
cycle2 | string | 12 | 12 | 否 | 周期2,默认值cycle2=12 |
cycle3 | string | 24 | 24 | 否 | 周期3,默认值cycle3=24 |
返回参数说明: |
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "", desc: "" },
{ name: "- bias1", type: "int" demo: "3.7532289925543", desc: "bias1值" },
{ name: "- bias2", type: "int" demo: "5.6066816178177", desc: "bias2值" },
{ name: "- bias3", type: "int" demo: "8.8734752451567", desc: "bias3值" },
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": {
"date": "2021-10-10",
"bias3": 8.8734752451567,
"bias1": 3.7532289925543,
"bias2": 5.6066816178177
}
}
接口说明:RSI指标
地址:https://stockapi.com.cn/v1/quota/rsi
请求参数说明:
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
code | string | 600004 | 是 | 股票代码 | |
date | string | 2021-10-10 | 是 | 交易时间 | |
cycle1 | string | 6 | 6 | 否 | 周期1,默认值cycle1=6 |
cycle2 | string | 12 | 12 | 否 | 周期2,默认值cycle2=12 |
cycle3 | string | 24 | 24 | 否 | 周期3,默认值cycle3=24 |
vipCycleFlag | string | 0 | 0 | 否 | 是否需要返回所有周期数据,1:是;0:否。有token用户可以传1 |
请求示例:
https://stockapi.com.cn/v1/quota/rsi?code=601088&cycle1=6&cycle2=12&cycle3=24&date=2021-10-10&vipCycleFlag=0
返回参数说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "", desc: "" },
{ name: "- api_code", type: "string", demo: "600004.SH", desc: "" },
{ name: "- date", type: "Object[]", demo: "2022-09-05", desc: "时间" },
{ name: "- rsi1", type: "Object[]" demo: "", desc: "rsi1" },
{ name: "- rsi2", type: "Object[]" demo: "", desc: "rsi2" },
{ name: "- rsi3", type: "Object[]" demo: "", desc: "rsi3" },
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": {
"date": ["2021-10-10"],
"rsi1": [41.010101],
"rsi2": [36.7647059],
"rsi3": [38.7647059],
}
}
接口说明:神奇九转指标
地址:https://stockapi.com.cn/v1/quota/nineTurn
请求示例:
https://stockapi.com.cn/v1/quota/nineTurn?code=600004&date=2021-10-10
请求参数说明:
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
code | string | 600004 | 是 | 股票代码 | |
date | string | 2021-10-10 | 是 | 交易时间 |
返回参数说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "", desc: "" },
{ name: "- api_code", type: "int" demo: "600004.SH", desc: "股票代码" },
{ name: "- date", type: "string" demo: "2021-12-31", desc: "日期" },
{ name: "- lowNine", type: "int" demo: "0", desc: "低位九转:0:否,1:是" },
{ name: "- highNine", type: "int" demo: "1", desc: "高位九转:0:否,1:是" },
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": {
"date": "2021-12-31",
"lowNine": 0,
"highNine": 1
}
}
接口说明:所有A股列表数据查询
地址:https://stockapi.com.cn/v1/base/all
请求参数说明:
请求示例:
https://stockapi.com.cn/v1/base/all
返回参数说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object[]", demo: "", desc: "" },
{ name: "- api_code", type: "int" demo: "603176", desc: "股票代码" },
{ name: "- jys", type: "string" demo: "SH", desc: "交易所" },
{ name: "- name", type: "string" demo: "通灵股份", desc: "名称" },
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": [
{
"jys": "SH",
"name": "N汇通"
},
{
"jys": "SZ",
"name": "通灵股份"
},
{
"jys": "SZ",
"name": "新开普"
},
{
"jys": "SZ",
"name": "绿岛风"
},
]
接口说明:所有st股列表数据查询
地址:https://stockapi.com.cn/v1/base/st
请求参数说明:
https://stockapi.com.cn/v1/base/st
返回参数说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object[]", demo: "", desc: "" },
{ name: "- code", type: "int" demo: "300795.SZ", desc: "股票代码" },
{ name: "- name", type: "string" demo: "*ST米奥", desc: "名称" },
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": [
{
"code": "300795.SZ",
"name": "*ST米奥"
},
{
"code": "300051.SZ",
"name": "ST三五"
},
{
"code": "300370.SZ",
"name": "ST安控"
},
{
"code": "000835.SZ",
"name": "*ST长动"
}
]
接口说明:十大成交活跃股
地址:https://stockapi.com.cn/v1/base/top10Active
请求示例:
https://stockapi.com.cn/v1/base/top10Active?endDate=2021-10-22&startDate=2021-10-20
请求参数说明:
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
startDate | string | 2021-10-20 | 是 | 交易开始时间,格式:2021-10-20 | |
endDate | string | 2021-10-22 | 是 | 交易结束时间,格式:2021-10-22 |
返回参数说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "", desc: "" },
{ name: "- stockCode", type: "Object[]" demo: "", desc: "股票代码" },
{ name: "- tradeDate", type: "Object[]" demo: "", desc: "交易日期" },
{ name: "- type", type: "Object[]" demo: "", desc: "类型" },
{ name: "- rank", type: "Object[]" demo: "", desc: "排名" },
{ name: "- buyAmt", type: "Object[]" demo: "", desc: "买入金额(万元)" },
{ name: "- sellAmt", type: "Object[]" demo: "", desc: "卖出金额(万元)" },
{ name: "- dealAmt", type: "Object[]" demo: "", desc: "成交金额" },
{ name: "- currencyCategory", type: "Object[]" demo: "", desc: "货币种类" },
{ name: "- newSFCIndustry", type: "Object[]" demo: "", desc: "证监会行业" },
{ name: "- HSIndustry", type: "Object[]" demo: "", desc: "所属恒生行业" },
{ name: "- GICSIndustry", type: "Object[]" demo: "", desc: "所属GICS行业" }
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": {
"stockCode": Object[],
"tradeDate": Object[],
"type": Object[],
"rank": Object[],
"buyAmt": Object[],
"sellAmt": Object[],
"dealAmt": Object[],
"currencyCategory": Object[],
"newSFCIndustry": Object[],
"HSIndustry": Object[],
"GICSIndustry": Object[]
}
}
接口说明:查询当日是否为交易日
地址:https://stockapi.com.cn/v1/quota/nineTurn
请求示例:
https://stockapi.com.cn/v1/base/tradeDate?tradeDate=2021-10-20
请求参数说明:
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
tradeDate | string | 2021-10-10 | 是 | 交易时间 |
返回参数说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "", desc: "" },
{ name: "- isTradeDate", type: "int" demo: "1", desc: "是否为交易日:0:否,1:是" }
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": {
"isTradeDate": 1
}
}
接口说明:查询上证指数
地址:https://stockapi.com.cn/v1/index/sh
请求示例:
https://stockapi.com.cn/v1/index/sh?startDate=2021-10-20&endDate=2021-10-30
请求参数说明:
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
startDate | string | 2021-10-20 | 是 | 交易开始时间,格式:2021-10-20 | |
endDate | string | 2021-10-30 | 是 | 交易结束时间,格式:2021-10-30 |
返回参数说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "", desc: "" },
{ name: "- api_code", type: "string" demo: "000001.SH", desc: "股票代码" },
{ name: "- time", type: "Object[]" demo: "", desc: "交易日期" },
{ name: "- volume", type: "Object[]" demo: "", desc: "成交量" },
{ name: "- high", type: "Object[]" demo: "", desc: "最高价" },
{ name: "- amount", type: "Object[]" demo: "", desc: "成交额" },
{ name: "- low", type: "Object[]" demo: "", desc: "最低价" },
{ name: "- avgPrice", type: "Object[]" demo: "", desc: "均价" },
{ name: "- change", type: "Object[]" demo: "", desc: "涨跌" },
{ name: "- changeRatio", type: "Object[]" demo: "", desc: "涨跌幅" },
{ name: "- close", type: "Object[]" demo: "", desc: "收盘价" },
{ name: "- open", type: "Object[]" demo: "", desc: "开盘价" }
]
返回示例:
{
"code":20000,
"msg":"success",
"data":{
"thscode":"",
"time":Object[242],
"table":{
"volume":Object[242],
"high":Object[242],
"amount":Object[242],
"low":Object[242],
"avgPrice":Object[242],
"change":Object[242],
"changeRatio":Object[242],
"close":Object[242],
"open":Object[242]
}
}
}
接口说明:查询深圳成指
地址:https://stockapi.com.cn/v1/index/sz
请求示例:
https://stockapi.com.cn/v1/index/sz?startDate=2021-10-20&endDate=2021-10-30
请求参数说明:
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
startDate | string | 2021-10-20 | 是 | 交易开始时间,格式:2021-10-20 | |
endDate | string | 2021-10-30 | 是 | 交易结束时间,格式:2021-10-30 |
返回参数说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "", desc: "" },
{ name: "- api_code", type: "string" demo: "399001.SZ", desc: "股票代码" },
{ name: "- time", type: "Object[]" demo: "", desc: "交易日期" },
{ name: "- volume", type: "Object[]" demo: "", desc: "成交量" },
{ name: "- high", type: "Object[]" demo: "", desc: "最高价" },
{ name: "- amount", type: "Object[]" demo: "", desc: "成交额" },
{ name: "- low", type: "Object[]" demo: "", desc: "最低价" },
{ name: "- avgPrice", type: "Object[]" demo: "", desc: "均价" },
{ name: "- change", type: "Object[]" demo: "", desc: "涨跌" },
{ name: "- changeRatio", type: "Object[]" demo: "", desc: "涨跌幅" },
{ name: "- close", type: "Object[]" demo: "", desc: "收盘价" },
{ name: "- open", type: "Object[]" demo: "", desc: "开盘价" }
]
返回示例:
{
"code":20000,
"msg":"success",
"data":{
"thscode":"",
"time":Object[242],
"table":{
"volume":Object[242],
"high":Object[242],
"amount":Object[242],
"low":Object[242],
"avgPrice":Object[242],
"change":Object[242],
"changeRatio":Object[242],
"close":Object[242],
"open":Object[242]
}
}
}
接口说明:查询上证50
地址:https://stockapi.com.cn/v1/index/sh50
请求示例:
https://stockapi.com.cn/v1/index/sh50?startDate=2021-10-20&endDate=2021-10-30
请求参数说明:
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
startDate | string | 2021-10-20 | 是 | 交易开始时间,格式:2021-10-20 | |
endDate | string | 2021-10-30 | 是 | 交易结束时间,格式:2021-10-30 |
返回参数说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "", desc: "" },
{ name: "- api_code", type: "string" demo: "000016.SH", desc: "股票代码" },
{ name: "- time", type: "Object[]" demo: "", desc: "交易日期" },
{ name: "- volume", type: "Object[]" demo: "", desc: "成交量" },
{ name: "- high", type: "Object[]" demo: "", desc: "最高价" },
{ name: "- amount", type: "Object[]" demo: "", desc: "成交额" },
{ name: "- low", type: "Object[]" demo: "", desc: "最低价" },
{ name: "- avgPrice", type: "Object[]" demo: "", desc: "均价" },
{ name: "- change", type: "Object[]" demo: "", desc: "涨跌" },
{ name: "- changeRatio", type: "Object[]" demo: "", desc: "涨跌幅" },
{ name: "- close", type: "Object[]" demo: "", desc: "收盘价" },
{ name: "- open", type: "Object[]" demo: "", desc: "开盘价" }
]
返回示例:
{
"code":20000,
"msg":"success",
"data":{
"thscode":"",
"time":Object[242],
"table":{
"volume":Object[242],
"high":Object[242],
"amount":Object[242],
"low":Object[242],
"avgPrice":Object[242],
"change":Object[242],
"changeRatio":Object[242],
"close":Object[242],
"open":Object[242]
}
}
}
接口说明:基金分时数据
地址:https://stockapi.com.cn/v1/fund/min
请求示例:
https://stockapi.com.cn/v1/fund/min/v1/fund/min?code=159713
请求参数说明:
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
code | string | 159713 | 是 | 基金代码,格式:159713 |
返回参数说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object", demo: "", desc: "" },
{ name: "- sellVolume", type: "int" demo: "11894717", desc: "内盘" },
{ name: "- amount", type: "int" demo: "26065956", desc: "成交额" },
{ name: "- change", type: "int" demo: "0.002", desc: "涨跌" },
{ name: "- tradeDate", type: "string" demo: "2021-12-31", desc: "交易日期" },
{ name: "- latestVolume", type: "int" demo: "198717", desc: "现手" },
{ name: "- volume", type: "int" demo: "246464", desc: "成交量" },
{ name: "- tradeTime", type: "string" demo: "17:00:00", desc: "交易时间" },
{ name: "- high", type: "int" demo: "1.063", desc: "最高价" },
{ name: "- preClose", type: "int" demo: "1.053", desc: "前收盘价" },
{ name: "- low", type: "int" demo: "1.052", desc: "最低价" },
{ name: "- changeRatio", type: "int" demo: "0.1899335232668567", desc: "涨跌幅" },
{ name: "- buyVolume", type: "int" demo: "12751700", desc: "外盘" },
{ name: "- iopv", type: "int" demo: "1.056", desc: "IOPV(净值估值)" },
{ name: "- open", type: "int" demo: "1.052", desc: "开盘价" },
{ name: "- latest", type: "int" demo: "1.055", desc: "最新价" }
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": {
"sellVolume": 11894717,
"amount": 26065956,
"change": 0.002,
"tradeDate": "2021-12-31",
"latestVolume": 198717,
"volume": 246464,
"tradeTime": "17:00:00",
"high": 1.063,
"preClose": 1.053,
"low": 1.052,
"changeRatio": 0.1899335232668567,
"buyVolume": 12751700,
"iopv": 1.056,
"open": 1.052,
"latest": 1.055
}
}
接口说明:所有基金列表查询
地址:https://stockapi.com.cn/v1/fund/all
https://stockapi.com.cn/v1/fund/all```
请求参数说明:
请求示例:
| 参数名称 | 类型 | 默认值| 示例值 | 是否必须| 描述|
|--|--|--|--|--|--|
| keyWords| string | |159713 | 否|支持基金代码和名称模糊查询(非必填)|
返回参数说明:
```bash
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object[]", demo: "", desc: "" },
{ name: "- code", type: "string" demo: "159713", desc: "基金代码" },
{ name: "- type", type: "string" demo: "SH", desc: "类型" },
{ name: "- name", type: "string" demo: "通灵股份", desc: "名称" },
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": [
{
"code": "000031",
"name": "华夏复兴混合",
"type": "混合型-偏股"
},
{
"code": "000032",
"name": "易方达信用债债券A",
"type": "债券型-长债"
},
{
"code": "000033",
"name": "易方达信用债债券C",
"type": "债券型-长债"
},
{
"code": "000037",
"name": "广发景宁债券A",
"type": "债券型-长债"
}
]
接口说明:行业板块个股列表
地址:https://stockapi.com.cn/v1/base/bkList?bkCode=BK1036
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
bkCode | string | BK1036 | 是 | 行业板块代码 | |
pageNo | int | 1 | 是 | 页码 | |
pageSize | int | 50 | 是 | 每页行数 |
请求示例:
https://stockapi.com.cn/v1/base/bkList?bkCode=BK1036
返回值说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object[]", demo: "", desc: "" },
{ name: "- f1", type: "string" demo: "2", desc: "序号" },
{ name: "- f2", type: "string" demo: "90.8", desc: "最新价" },
{ name: "- f3", type: "string" demo: "-0.69%", desc: "今日涨跌幅" },
{ name: "- f12", type: "string" demo: "300223", desc: "股票代码" },
{ name: "- f13", type: "string" demo: "0", desc: "" },
{ name: "- f14", type: "string" demo: "北京君正", desc: "股票名称" },
{ name: "- f62", type: "string" demo: "42552789", desc: "今日主力净流入净额" },
{ name: "- f66", type: "string" demo: "5038315", desc: "今日超大单净流入净额" },
{ name: "- f69", type: "string" demo: "0.6%", desc: "今日超大单净流入占比" },
{ name: "- f72", type: "string" demo: "37514474", desc: "今日大单净流入净额" },
{ name: "- f75", type: "string" demo: "4.49%", desc: "今日大单净流入占比" },
{ name: "- f78", type: "string" demo: "22833456", desc: "今日中单净流入净额" },
{ name: "- f81", type: "string" demo: "2.73%", desc: "今日中单净流入占比" },
{ name: "- f84", type: "string" demo: "-65386248", desc: "今日小单净流入净额" },
{ name: "- f87", type: "string" demo: "-7.83%", desc: "今日小单净流入占比" },
{ name: "- f184", type: "string" demo: "2%", desc: "今日主力净流入净额占比" }
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": [
{
"f1": 2,
"f2": 90.8,
"f3": -0.69,
"f12": "300223",
"f13": 0,
"f14": "北京君正",
"f62": 42552789,
"f66": 5038315,
"f69": 0.6,
"f72": 37514474,
"f75": 4.49,
"f78": 22833456,
"f81": 2.73,
"f84": -65386248,
"f87": -7.83,
"f124": 1653464073,
"f184": 5.1,
}
]
}
接口说明:行业板块代码
地址:https://stockapi.com.cn/v1/base/bk
请求示例:
https://stockapi.com.cn/v1/base/bk
返回值说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object[]", demo: "", desc: "" },
{ name: "- name", type: "string" demo: "包装材料", desc: "板块名称" },
{ name: "- plateCode", type: "string" demo: "BK0733", desc: "板块代码" }
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": [
{
"name": "包装材料",
"plateCode": "BK0733"
}
]
接口说明:板块历史资金流
地址:https://stockapi.com.cn/v1/base/bkFlowHistory
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
bkCode | string | BK1036 | 是 | 行业板块代码 |
请求示例:
https://stockapi.com.cn/v1/base/bkFlowHistory?bkCode=BK1036
返回值说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object[]", demo: "", desc: "" },
{ name: "- time", type: "string" demo: "2022-07-04", desc: "时间" },
{ name: "- mainAmount", type: "string" demo: "-4138475280", desc: "主力净流入净额" },
{ name: "- minAmount", type: "string" demo: "3404481792", desc: "小单净流入净额" },
{ name: "- middleAmount", type: "string" demo: "733993728", desc: "中单净流入净额" },
{ name: "- bigAmount", type: "string" demo: "-2522896128", desc: "大单净流入净额" },
{ name: "- supperBigAmount", type: "string" demo: "-1615579152", desc: "超大单净流入净额" },
{ name: "- mainAmountPercentage", type: "string" demo: "-7.77%", desc: "主力净流入净占比" },
{ name: "- minAmountPercentage", type: "string" demo: "6.39%", desc: "小单净流入净占比" },
{ name: "- middleAmountPercentage", type: "string" demo: "-4.74%", desc: "中单净流入净占比" },
{ name: "- bigAmountPercentage", type: "string" demo: "-4.74%", desc: "大单净流入净占比" },
{ name: "- supperBigAmountPercentage", type: "string" demo: "-3.03%", desc: "超大单净流入净占比" },
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": [
{
"time": "2022-07-04",
"mainAmount": -4138475280,
"minAmount": 3404481792,
"middleAmount": 733993728,
"bigAmount": -2522896128,
"supperBigAmount": -1615579152,
"mainAmountPercentage": "-7.77%",
"minAmountPercentage": "6.39%",
"middleAmountPercentage": "1.38%",
"bigAmountPercentage": "-4.74%",
"supperBigAmountPercentage": "-3.03%"
},
{
"time": "2022-07-01",
"mainAmount": -2177523648,
"minAmount": 1925065728,
"middleAmount": 252457728,
"bigAmount": -1369560576,
"supperBigAmount": -807963072,
"mainAmountPercentage": "-4.60%",
"minAmountPercentage": "4.06%",
"middleAmountPercentage": "0.53%",
"bigAmountPercentage": "-2.89%",
"supperBigAmountPercentage": "-1.71%"
},
]
接口说明:涨停股池
地址:https://stockapi.com.cn/v1/base/ZTPool
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
date | string | 2022-09-16 | 是 | 交易时间,格式:2022-09-16 |
请求示例:
https://stockapi.com.cn/v1/base/ZTPool?date=2022-09-16
返回值说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object[]", demo: "", desc: "" },
{ name: "- code", type: "string" demo: "000419", desc: "股票代码" },
{ name: "- name", type: "string" demo: "通程控股", desc: "名称" },
{ name: "- changeRatio", type: "string" demo: "10.01", desc: "涨跌幅%" },
{ name: "- lastPrice", type: "string" demo: "5.91", desc: "最新价"},
{ name: "- amount", type: "string" demo: "142304401", desc: "成交额" },
{ name: "- flowCapital", type: "string" demo: "3210902084", desc: "流通市值" },
{ name: "- totalCapital", type: "string" demo: "3212573497", desc: "总市值" },
{ name: "- turnoverRatio", type: "string" demo: "4.610971", desc: "换手率%" },
{ name: "- ceilingAmount", type: "string" demo: "102224679", desc: "封板资金" },
{ name: "- firstCeilingTime", type: "string" demo: "134027", desc: "首次封板时间" },
{ name: "- lastCeilingTime", type: "string" demo: "134027", desc: "最后封板时间" },
{ name: "- bombNum", type: "string" demo: "0", desc: "炸板次数" },
{ name: "- lbNum", type: "string" demo: "1", desc: "连扳数量" },
{ name: "- industry", type: "string" demo: "商业百货", desc: "所属行业" },
{ name: "- time", type: "string" demo: "2022-09-16", desc: "时间" }
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": [
{
"code": "000419",
"name": "通程控股",
"changeRatio": 10.055866,
"lastPrice": 5.91,
"amount": 142304401,
"flowCapital": 3210902084,
"totalCapital": 3212573497,
"turnoverRatio": 4.610971,
"ceilingAmount": 102224679,
"firstCeilingTime": "134027",
"lastCeilingTime": "134027",
"bombNum": 0,
"lbNum": 1,
"industry": "商业百货",
"time": "2022-09-16"
}
]
}
接口说明:强势股池
地址:https://stockapi.com.cn/v1/base/QSPool
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
date | string | 2022-09-16 | 是 | 交易时间,格式:2022-09-16 |
请求示例:
https://stockapi.com.cn/v1/base/QSPool?date=2022-09-16
返回值说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object[]", demo: "", desc: "" },
{ name: "- code", type: "string" demo: "000419", desc: "股票代码" },
{ name: "- name", type: "string" demo: "通程控股", desc: "名称" },
{ name: "- changeRatio", type: "string" demo: "10.01", desc: "涨跌幅%" },
{ name: "- lastPrice", type: "string" demo: "5.91", desc: "最新价"},
{ name: "- amount", type: "string" demo: "142304401", desc: "成交额" },
{ name: "- flowCapital", type: "string" demo: "3210902084", desc: "流通市值" },
{ name: "- totalCapital", type: "string" demo: "3212573497", desc: "总市值" },
{ name: "- turnoverRatio", type: "string" demo: "4.610971", desc: "换手率%" },
{ name: "- zttj", type: "string" demo: "{\"days\":3,\"ct\":2}", desc: "涨停统计" },
{ name: "- zs", type: "string" demo: "0.0", desc: "涨速" },
{ name: "- nh", type: "string" demo: "0", desc: "是否新高,0-否,1-是" },
{ name: "- lb", type: "string" demo: "1.2846934795379639", desc: "量比" }
{ name: "- time", type: "string" demo: "2022-09-16", desc: "时间" }
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": [
{
"code":"688776",
"name":"国光电气",
"changeRatio":11.573111534118652,
"lastPrice":241.5,
"amount":350713648,
"flowCapital":5759066922,
"totalCapital":18696139812,
"turnoverRatio":6.180147647857666,
"industry":"电子元件",
"zttj":"{\"days\":0,\"ct\":0}",
"zs":"0.0",
"nh":1,
"lb":"2.3379034996032715",
"time":"2022-09-16"
}
]
}
接口说明:次新股池
地址:https://stockapi.com.cn/v1/base/CXPool
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
date | string | 2022-09-16 | 是 | 交易时间,格式:2022-09-16 |
请求示例:
https://stockapi.com.cn/v1/base/CXPool?date=2022-09-08
返回值说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object[]", demo: "", desc: "" },
{ name: "- code", type: "string" demo: "000419", desc: "股票代码" },
{ name: "- name", type: "string" demo: "通程控股", desc: "名称" },
{ name: "- changeRatio", type: "string" demo: "10.01", desc: "涨跌幅%" },
{ name: "- lastPrice", type: "string" demo: "5.91", desc: "最新价"},
{ name: "- amount", type: "string" demo: "142304401", desc: "成交额" },
{ name: "- flowCapital", type: "string" demo: "3210902084", desc: "流通市值" },
{ name: "- totalCapital", type: "string" demo: "3212573497", desc: "总市值" },
{ name: "- turnoverRatio", type: "string" demo: "4.610971", desc: "换手率%" },
{ name: "- industry", type: "string" demo: "商业百货", desc: "所属行业" },
{ name: "- zttj", type: "string" demo: "{\"days\":0,\"ct\":0}", desc: "涨停统计:几天几板" },
{ name: "- nh", type: "string" demo: "1", desc: "是否新高:1-是,0-否" },
{ name: "- ods", type: "string" demo: "226", desc: "开板几日" },
{ name: "- od", type: "string" demo: "20211019", desc: "开板日期" },
{ name: "- ipod", type: "string" demo: "20211019", desc: "上市日期" },
{ name: "- time", type: "string" demo: "2022-09-16", desc: "时间" }
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": [
{
"code":"001216",
"name":"华瓷股份",
"changeRatio":-0.3523608148097992,
"lastPrice":14.14,
"amount":49989965,
"flowCapital":890349138,
"totalCapital":3561395138,
"turnoverRatio":5.518735885620117,
"industry":"装修建材",
"zttj":"{\"days\":0,\"ct\":0}",
"nh":0,
"ods":226,
"od":"20211019",
"ipod":"20211019",
"time":"2022-09-16"
}
]
}
接口说明:炸板股池
地址:https://stockapi.com.cn/v1/base/ZBPool
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
date | string | 2022-09-16 | 是 | 交易时间,格式:2022-09-16 |
请求示例:
https://stockapi.com.cn/v1/base/ZBPool?date=2022-09-16
返回值说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object[]", demo: "", desc: "" },
{ name: "- code", type: "string" demo: "000419", desc: "股票代码" },
{ name: "- name", type: "string" demo: "通程控股", desc: "名称" },
{ name: "- changeRatio", type: "string" demo: "10.01", desc: "涨跌幅%" },
{ name: "- lastPrice", type: "string" demo: "5.91", desc: "最新价"},
{ name: "- amount", type: "string" demo: "142304401", desc: "成交额" },
{ name: "- flowCapital", type: "string" demo: "3210902084", desc: "流通市值" },
{ name: "- totalCapital", type: "string" demo: "3212573497", desc: "总市值" },
{ name: "- turnoverRatio", type: "string" demo: "4.610971", desc: "换手率%" },
{ name: "- ceilingAmount", type: "string" demo: "102224679", desc: "封板资金" },
{ name: "- firstCeilingTime", type: "string" demo: "134027", desc: "首次封板时间" },
{ name: "- bombNum", type: "string" demo: "0", desc: "炸板次数" },
{ name: "- industry", type: "string" demo: "商业百货", desc: "所属行业" },
{ name: "- zttj", type: "string" demo: "{\"days\":0,\"ct\":0}", desc: "涨停统计:几天几板" },
{ name: "- zs", type: "string" demo: "", desc: "涨速%" },
{ name: "- time", type: "string" demo: "2022-09-16", desc: "时间" }
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": [
{
"code":"000909",
"name":"数源科技",
"changeRatio":8.305647850036621,
"lastPrice":9.78,
"amount":722835312,
"flowCapital":3789005390,
"totalCapital":4438443786,
"turnoverRatio":19.245508193969727,
"firstCeilingTime":"101357",
"bombNum":2,
"industry":"综合行业",
"zttj":"{\"days\":0,\"ct\":0}",
"zs":"-0.10214505344629288",
"time":"2022-09-16"
}
]
}
接口说明:跌停股池
地址:https://stockapi.com.cn/v1/base/DTPool
参数名称 | 类型 | 默认值 | 示例值 | 是否必须 | 描述 |
date | string | 2022-09-16 | 是 | 交易时间,格式:2022-09-16 |
请求示例:
https://stockapi.com.cn/v1/base/DTPool?date=2022-09-16
返回值说明:
[
{ name: "code", type: "int", demo: "20000", desc: "返回码" },
{ name: "msg", type: "string", demo: "success", desc: "状态" },
{ name: "data", type: "Object[]", demo: "", desc: "" },
{ name: "- code", type: "string" demo: "000419", desc: "股票代码" },
{ name: "- name", type: "string" demo: "通程控股", desc: "名称" },
{ name: "- changeRatio", type: "string" demo: "10.01", desc: "涨跌幅%" },
{ name: "- lastPrice", type: "string" demo: "5.91", desc: "最新价"},
{ name: "- amount", type: "string" demo: "142304401", desc: "成交额" },
{ name: "- flowCapital", type: "string" demo: "3210902084", desc: "流通市值" },
{ name: "- totalCapital", type: "string" demo: "3212573497", desc: "总市值" },
{ name: "- turnoverRatio", type: "string" demo: "4.610971", desc: "换手率%" },
{ name: "- ceilingAmount", type: "string" demo: "102224679", desc: "封板资金" },
{ name: "- firstCeilingTime", type: "string" demo: "134027", desc: "首次封板时间" },
{ name: "- lastCeilingTime", type: "string" demo: "134027", desc: "最后封板时间" },
{ name: "- industry", type: "string" demo: "商业百货", desc: "所属行业" },
{ name: "- pe", type: "string" demo: "27", desc: "动态市盈率" }
{ name: "- fba", type: "string" demo: "33023498", desc: "板上成交额" }
{ name: "- days", type: "string" demo: "1", desc: "连续跌停天数" }
{ name: "- oc", type: "string" demo: "2", desc: "开板次数" }
{ name: "- time", type: "string" demo: "2022-09-16", desc: "时间" }
]
返回示例:
{
"code": 20000,
"msg": "success",
"data": [
{
"code":"000014",
"name":"沙河股份",
"changeRatio":-9.972553253173828,
"lastPrice":9.84,
"amount":538277744,
"flowCapital":2381734844,
"totalCapital":2381734844,
"turnoverRatio":21.889938354492188,
"ceilingAmount":3754009,
"lastCeilingTime":"145439",
"industry":"房地产开",
"pe":27,
"fba":33023498,
"days":1,
"oc":2,
"time":"2022-09-16"
}
]
}