当前位置: > 股票>正文

量化交易、股票,基金api接口数据说明 股票基金行情查询

2023-09-11 17:57:07 互联网 未知 股票

量化交易、股票,基金api接口数据说明

股票基金api接口地址:stockapi.com.cntoken可以在这里此处申请:stockapi.com.cn

接口说明:日线macd数据查询

地址:stockapi.com.cn/v1/quota/ma…

参数名称类型默认值示例值是否必须描述codestring600004.SH是股票代码datestring2023-10-17是时间cycleint99否周期longCycleint2626否长周期shortCycleint1212否短周期请求示例:https://stockapi.com.cn/v1/quota/macd?code=600004&cycle=9&date=2023-10-17&longCycle=26&shortCycle=12

返回值说明:

[ { 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: "2023-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": { "api_code": "600004.SH", "date": "2023-10-17", "DEA": 0.39808748104648, "DIFF": 0.46470061143322, "MACD": 0.13322626077348 }}接口说明:日线kdj数据查询

地址:stockapi.com.cn/v1/quota/kd…请求示例:

参数名称类型默认值示例值是否必须描述codestring600004.SH是股票代码datestring2023-10-17是时间cycle1int99否周期1cycle2int33否周期2cycle2int33否周期3https://stockapi.com.cn/v1/quota/kdj?code=600004&cycle=9&cycle1=3&cycle2=3&date=2023-10-17

返回值说明:

[ { 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: "2023-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": { "api_code": "600004.SH", "date": "2023-10-17", "d": 74.026411185765, "j": 75.970593695305, "k": 74.674472023278 }}接口说明:日线wr数据查询

地址:stockapi.com.cn/v1/quota/wr请求示例:

https://stockapi.com.cn/v1/quota/wr?token=你的token&code=600004&cycle1=10&cycle2=6&date=2023-10-17

返回值说明:

[ { 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: "2023-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": { "api_code": "600004.SH", "date": "2023-10-17", "wr2": 29.770992366412, "wr1": 23.493975903614 }}接口说明:日线cci数据查询

地址:stockapi.com.cn/v1/quota/cc…请求示例:

https://stockapi.com.cn/v1/quota/cci?token=你的token&code=600004&cycle=14&date=2023-10-17

返回值说明:

[ { 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: "2023-10-22", desc: "交易日期" }, { name: "- cci", type: "int", demo: "162.11800884105", desc: "cci值" } ]

返回示例:

{ "code": 20000, "msg": "success", "data": { "api_code": "600004.SH", "date": "2023-10-17", "cci": 162.11800884105 }}接口说明:5,10,20日ma均线数据查询

地址:stockapi.com.cn/v1/quota/ma请求示例:

https://stockapi.com.cn/v1/quota/ma?token=你的token&code=600004&date=2023-10-17&ma=5,10,20

返回值说明:

[ { 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: "2023-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": { "api_code": "600004.SH", "date": "2023-10-17", "ma5": 11.646, "ma10": 10.989, "ma20": 11.294 }}接口说明:布林带boll数据查询

地址:stockapi.com.cn/v1/quota/bo…请求示例:

https://stockapi.com.cn/v1/quota/boll?token=你的token&bandwidth=2&code=600004&cycle=26&date=2023-10-17

返回值说明:

[ { 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: "2023-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": { "api_code": "600004.SH", "date": "2023-10-17", "UPPER": 11.930630802942, "LOWER": 9.6909076585968, "MID": 10.810769230769 }}接口说明:龙虎榜查询

地址:stockapi.com.cn/v1/base/dra…请求地址:

https://stockapi.com.cn/v1/base/dragonTiger?token=你的token&date=2023-10-17

返回值说明:

[ { 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": [ "2023/12/24", "2023/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 ] }}接口说明: 股票历史日线行情查询

地址:stockapi.com.cnv1/base/day请求示例:

https://stockapi.com.cn/v1/base/day?token=你的token&code=600004&endDate=2023-10-15&startDate=2023-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数据

地址:stockapi.com.cn/v1/base/min…请求示例:

https://stockapi.com.cn/v1/base/minKdj?token=你的token&code=600004&cycle=9&cycle1=3&cycle2=3请求参数说明:参数名称类型默认值示例值是否必须描述codestring600004.SH是股票代码cycleint99否周期cycle1int33否周期1cycle2int33否周期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":{ "api_code":"601088.SH", "date":"2023-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{...} } }}接口说明:分时数据获取

地址:stockapi.com.cn/v1/base/min请求示例:

https://stockapi.com.cn/v1/base/min?token=你的token&code=600004请求参数说明:参数名称类型默认值示例值是否必须描述codestring600004.SH是股票代码返回参数说明:[ { 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: "2023-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": "2023-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 }}接口说明:主力资金流入流出指标

地址:stockapi.com.cn/v1/quota/ca…请求示例:

https://stockapi.com.cn/v1/quota/capital?token=你的token&code=600004&date=2023-10-10请求参数说明:参数名称类型默认值示例值是否必须描述codestring600004是股票代码datestring2023-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 }}接口说明:量比指标

地址:stockapi.com.cn/v1/quota/lb请求示例:

https://stockapi.com.cn/v1/quota/lb?token=你的token&code=600004&cycle=5&date=2023-10-10请求参数说明:参数名称类型默认值示例值是否必须描述codestring600004.SH是股票代码datestring2023-10-10是交易时间cyclestring5是周期,默认值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指标

地址:stockapi.com.cn/v1/quota/sa…请求示例:

https://stockapi.com.cn/v1/quota/sar?token=你的token&code=600004&cycle=4&date=2023-10-10&limit=10&step=2请求参数说明:参数名称类型默认值示例值是否必须描述codestring600004是股票代码datestring2023-10-10是交易时间cyclestring4否周期,默认值cycle=4stepstring2否步长,默认值step=2limitstring10否极值,默认值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指标

地址:stockapi.com.cn/v1/quota/bi…请求示例:

https://stockapi.com.cn/v1/quota/bias?token=你的token&code=600004&cycle1=6&cycle2=12&cycle3=24&date=2023-10-10请求参数说明:参数名称类型默认值示例值是否必须描述codestring600004是股票代码datestring2023-10-10是交易时间cycle1string66否周期1,默认值cycle1=6cycle2string1212否周期2,默认值cycle2=12cycle3string2424否周期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": { "api_code": "600004.SH", "date": "2023-10-10", "bias3": 8.8734752451567, "bias1": 3.7532289925543, "bias2": 5.6066816178177 }}接口说明:能量潮OBV指标

地址:stockapi.com.cn/v1/quota/ob…请求示例:

https://stockapi.com.cn/v1/quota/obv?token=你的token&code=600004&date=2023-10-10&maobv=101&obv=100请求参数说明:参数名称类型默认值示例值是否必须描述codestring600004是股票代码datestring2023-10-10是交易时间obvstring100100否obv,默认值obv=100maobvstring101101否obv修正值maobv=101返回参数说明:[ { name: "code", type: "int", demo: "20000", desc: "返回码" }, { name: "msg", type: "string", demo: "success", desc: "状态" }, { name: "data", type: "Object", demo: "", desc: "" }, { name: "- obv", type: "int" demo: "413171.907", desc: "obv值" }, { name: "- maobv", type: "int" demo: "227666.15283674", desc: "maobv值" },]

返回示例:

{ "code": 20000, "msg": "success", "data": { "api_code": "600004.SH", "date": "2023-10-10", "obv": 413171.907, "maobv": 227666.15283674 }}接口说明:神奇九转指标

地址:stockapi.com.cn/v1/quota/ni…请求示例:

https://stockapi.com.cn/v1/quota/nineTurn?token=你的token&code=600004&date=2023-10-10请求参数说明:参数名称类型默认值示例值是否必须描述codestring600004是股票代码datestring2023-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: "2023-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": { "api_code": "600004.SH", "date": "2023-12-31", "lowNine": 0, "highNine": 1 }}接口说明:所有A股列表数据查询

地址:stockapi.com.cn/v1/base/all

请求参数说明:

请求示例:

https://stockapi.com.cn/v1/base/all?token=你的token返回参数说明:[ { 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": [ { "api_code": "603176", "jys": "SH", "name": "N汇通" }, { "api_code": "301168", "jys": "SZ", "name": "通灵股份" }, { "api_code": "300248", "jys": "SZ", "name": "新开普" }, { "api_code": "301043", "jys": "SZ", "name": "绿岛风" }, ]接口说明:所有st股列表数据查询

地址:stockapi.com.cn/v1/base/st

请求参数说明:https://stockapi.com.cn/v1/base/st?token=你的token返回参数说明:[ { 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长动" } ]接口说明:十大成交活跃股

地址:stockapi.com.cn/v1/base/top…请求示例:

https://stockapi.com.cn/v1/base/top10Active?token=你的token&endDate=2023-10-22&startDate=2023-10-20请求参数说明:参数名称类型默认值示例值是否必须描述startDatestring2023-10-20是交易开始时间,格式:2023-10-20endDatestring2023-10-22是交易结束时间,格式:2023-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[] }}接口说明:查询当日是否为交易日

地址:stockapi.com.cn/v1/quota/ni…请求示例:

https://stockapi.com.cn/v1/base/tradeDate?token=你的token&tradeDate=2023-10-20请求参数说明:参数名称类型默认值示例值是否必须描述tradeDatestring2023-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 }}接口说明:查询上证指数

地址:stockapi.com.cn/v1/index/sh请求示例:

https://stockapi.com.cn/v1/index/sh?token=你的token&date=2023-10-20请求参数说明:参数名称类型默认值示例值是否必须描述datestring2023-10-20是交易开始时间,格式:2023-10-20返回参数说明:[ { 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":{ "api_code":"000001.SH", "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] } }}接口说明:查询深圳成指

地址:stockapi.com.cn/v1/index/sz请求示例:

https://stockapi.com.cn/v1/index/sz?token=你的token&date=2023-10-20请求参数说明:参数名称类型默认值示例值是否必须描述datestring2023-10-20是交易开始时间,格式:2023-10-20返回参数说明:[ { 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":{ "api_code":"399001.SZ", "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

地址:stockapi.com.cn/v1/index/sh…请求示例:

https://stockapi.com.cn/v1/index/sh50?token=你的token&date=2023-10-20请求参数说明:参数名称类型默认值示例值是否必须描述datestring2023-10-20是交易开始时间,格式:2023-10-20返回参数说明:[ { 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":{ "api_code":"000016.SH", "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] } }}接口说明:基金分时数据

地址:stockapi.com.cn/v1/fund/min请求示例:

https://stockapi.com.cn/v1/fund/min/v1/fund/min?token=你的token&code=159713请求参数说明:参数名称类型默认值示例值是否必须描述codestring159713是基金代码,格式: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: "2023-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": "2023-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 }}接口说明:所有基金列表查询

地址:stockapi.com.cn/v1/fund/all

https://stockapi.com.cn/v1/fund/all?token=你的token请求参数说明:

请求示例:

参数名称类型默认值示例值是否必须描述keyWordsstring159713否支持基金代码和名称模糊查询(非必填)返回参数说明:[ { 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": "债券型-长债" } ]

版权声明: 本站仅提供信息存储空间服务,旨在传递更多信息,不拥有所有权,不承担相关法律责任,不代表本网赞同其观点和对其真实性负责。如因作品内容、版权和其它问题需要同本网联系的,请发送邮件至 举报,一经查实,本站将立刻删除。