API简介:获取上证50实时行情 接口问题联系相关负责人沟通修复:查看该接口开发者 接口地址:http://mzy.idc.cn.com:8080/other/open/stock/getShangHai50 返回格式:JSON 请求方式:GET 请求参数:http://mzy.idc.cn.com:8080/other/open/stock/getShangHai50?codes=sh600016,sh600030 极速测试(自动) 历史统计 历史列表 注:单纯检测接口是否可调通,返回的数据请自行检查 再次检测 检测接口中...(检测服务是否可用) 状态码 累计次数 最后检测时间 正常 故障 注意事项 Bug修复 专属线路 您好!我们的平台聚合了上千位开发者提供的免费接口,我们已尽力确保接口的稳定性,但由于无法控制其他开发者的接口,可能会出现不稳定或服务中断的情况。对此,我们深感抱歉!我们正在积极改善这一问题,感谢您的理解与支持。 1. 由于开发者可能因盈利问题导致接口失效,我为此向您道歉。 2. 我们竭尽全力改进平台的接口稳定性。 3. 为便于您使用,我们提供了智能生成对接代码和在线极速测试接口的功能。 4. 我们将继续努力提供更多可靠的接口,满足您的需求。 5. 若有任何问题,欢迎通过微信与我联系:13132131321。再次感谢您的支持与信任! 接口注意:接口故障请及时反馈,修复进度将通过短信通知。 非官方接口,请联系开发者获取技术支持 新 Bug修复:非官方接口,Bug反馈请联系开发者 新 会员线路:因调用量剧增,定制独享优质线路请 参考定制方案 专属线路 成本透明 0服务费 请求参数 接口名称 是否必填 接口类型 接口说明 codes 是 string 股票代码 返回示例 { "msg": "操作成功", "code": 200, "data": [ { "stockCode": "sh600016", "stockName": "民生银行", "openingPrice": 3.83, "previousClose": 3.83, "currentPrice": 3.84, "highestPrice": 3.86, "lowestPrice": 3.82, "bidPrice1": 3.84, "askPrice1": 3.85, "volume": "197926268", "amount": "760436556.000", "buyVolume1": "17415587", "buyPrice1": 3.84, "buyVolume2": "18433500", "buyPrice2": 3.83, "buyVolume3": "11963199", "buyPrice3": 3.82, "buyVolume4": "8999300", "buyPrice4": 3.81, "buyVolume5": "8190000", "buyPrice5": 3.8, "sellVolume1": "4857670", "sellPrice1": 3.85, "sellVolume2": "23837693", "sellPrice2": 3.86, "sellVolume3": "13444399", "sellPrice3": 3.87, "sellVolume4": "13002335", "sellPrice4": 3.88, "sellVolume5": "9030799", "sellPrice5": 3.89, "date": "2026-01-05", "time": "14:34:24" }, { "stockCode": "sh600030", "stockName": "中信证券", "openingPrice": 28.83, "previousClose": 28.71, "currentPrice": 29.28, "highestPrice": 29.36, "lowestPrice": 28.8, "bidPrice1": 29.28, "askPrice1": 29.29, "volume": "163193773", "amount": "4758571791.000", "buyVolume1": "100070", "buyPrice1": 29.28, "buyVolume2": "85800", "buyPrice2": 29.27, "buyVolume3": "74300", "buyPrice3": 29.26, "buyVolume4": "54300", "buyPrice4": 29.25, "buyVolume5": "22000", "buyPrice5": 29.24, "sellVolume1": "70800", "sellPrice1": 29.29, "sellVolume2": "41000", "sellPrice2": 29.3, "sellVolume3": "170355", "sellPrice3": 29.31, "sellVolume4": "426670", "sellPrice4": 29.32, "sellVolume5": "520500", "sellPrice5": 29.33, "date": "2026-01-05", "time": "14:34:27" } ] } 返回参数 接口名称 接口类型 接口说明 data.stockName string 股票代码 data.stockCode string 股票名称 data.openingPrice string 今日开盘价 data.previousClose string 昨日收盘价 data.currentPrice string 当前价格 { "data": { "currentPrice": "当前价格", "previousClose": "昨日收盘价", "openingPrice": "今日开盘价", "stockCode": "股票名称", "stockName": "股票代码" } } 小白教程 本教程帮助用户快速对接上证50接口,现已支持智能生成代码 为照顾小白,特意编写此对接文档教程,若有不懂请及时联系接口维护者。 上证50 小白快速对接「上证50」简易教程 实时调试 部分视频、图片或其他接口报错、空值并不代表无法对接,请在本地尝试请求参数接口 调试工具支持的请求类型有: GETPOSTPUTHEADTRACEDELETECONNECTOPTIONS GET 请求 POST 请求 GET 请求 POST 请求 PUT 请求 HEAD 请求 TRACE 请求 DELETE 请求 CONNECT 请求 OPTIONS 请求 在线调试 温馨提示:请修改请求参数,未修改可能返回报错; 参数名称 参数值(修改后测试) 添加参数 参数支持JSON格式,以及GET参数请求方式 返回键值对添加请求参数 { "msg": "操作成功", "code": 200, "data": [ { "stockCode": "sh600016", "stockName": "民生银行", "openingPrice": 3.83, "previousClose": 3.83, "currentPrice": 3.84, "highestPrice": 3.86, "lowestPrice": 3.82, "bidPrice1": 3.84, "askPrice1": 3.85, "volume": "197926268", "amount": "760436556.000", "buyVolume1": "17415587", "buyPrice1": 3.84, "buyVolume2": "18433500", "buyPrice2": 3.83, "buyVolume3": "11963199", "buyPrice3": 3.82, "buyVolume4": "8999300", "buyPrice4": 3.81, "buyVolume5": "8190000", "buyPrice5": 3.8, "sellVolume1": "4857670", "sellPrice1": 3.85, "sellVolume2": "23837693", "sellPrice2": 3.86, "sellVolume3": "13444399", "sellPrice3": 3.87, "sellVolume4": "13002335", "sellPrice4": 3.88, "sellVolume5": "9030799", "sellPrice5": 3.89, "date": "2026-01-05", "time": "14:34:24" }, { "stockCode": "sh600030", "stockName": "中信证券", "openingPrice": 28.83, "previousClose": 28.71, "currentPrice": 29.28, "highestPrice": 29.36, "lowestPrice": 28.8, "bidPrice1": 29.28, "askPrice1": 29.29, "volume": "163193773", "amount": "4758571791.000", "buyVolume1": "100070", "buyPrice1": 29.28, "buyVolume2": "85800", "buyPrice2": 29.27, "buyVolume3": "74300", "buyPrice3": 29.26, "buyVolume4": "54300", "buyPrice4": 29.25, "buyVolume5": "22000", "buyPrice5": 29.24, "sellVolume1": "70800", "sellPrice1": 29.29, "sellVolume2": "41000", "sellPrice2": 29.3, "sellVolume3": "170355", "sellPrice3": 29.31, "sellVolume4": "426670", "sellPrice4": 29.32, "sellVolume5": "520500", "sellPrice5": 29.33, "date": "2026-01-05", "time": "14:34:27" } ] }