查询股票历史数据的分析统计,根据股票代码和日期获取历史行情,返回开盘价、收盘价、最高价、最低价、成交量、成交额、换手率、涨跌幅等,可绘制日线图及走势分析。本数据仅用于学习分析,不得对外展示。
批量获取当前的大盘股指历史数据,每次最多获取10只股指。用于学习测试。如需要在用户终端展示,使用本接口数据需要得到交易所授权!授权责任请自行承担!
showapi_res_body
curl -X POST "https://route.showapi.com/131-45?appKey=YOUR_APPKEY" \ -H "content-type: application/x-www-form-urlencoded" \ -d "stocks=sh000001%2Csz399001%2Csz399005%2Csz399006%2Chkhsi"
{ "showapi_res_code": 0, "showapi_res_error": "", "showapi_res_id":"ce135f6739294c63be0c021b76b6fbff", "showapi_res_body": { "indexList": [ { "code": "sh000001", "maxPrice": 4456.896, "minPrice": 4325.514, "name": "上证指数", "nowPrice": 4337.732, "time": "2015-06-26 11:10:00", "todayOpenPrice": 4399.933, "tradeAmount": 401589568462, "tradeNum": 274612309, "yestodayClosePrice": 4527.779 }, { "code": "sz399001", "maxPrice": 15229.001, "minPrice": 14699.49, "name": "深证成指", "nowPrice": 14715.99, "time": "2015-06-26 11:09:58", "todayOpenPrice": 15196.558, "tradeAmount": 335593441518.75, "tradeNum": 16668091381, "yestodayClosePrice": 15692.444 }, { "code": "sz399005", "maxPrice": 9867.565, "minPrice": 9465.546, "name": "中小板指", "nowPrice": 9474.915, "time": "2015-06-26 11:09:58", "todayOpenPrice": 9823.63, "tradeAmount": 36998851286.95, "tradeNum": 1520682928, "yestodayClosePrice": 10160.601 }, { "code": "sz399006", "maxPrice": 3078.398, "minPrice": 2949.527, "name": "创业板指", "nowPrice": 2951.962, "time": "2015-06-26 11:09:58", "todayOpenPrice": 3078.398, "tradeAmount": 33580139964.63, "tradeNum": 982716129, "yestodayClosePrice": 3206.381 } ], "ret_code": 0 } }
在 Cherry Studio、ChatBox 等支持 MCP 的客户端中配置,将 {your_appKey} 替换为真实 AppKey(AppKey 管理)。该服务覆盖本接口全部接入点。
{ "mcpServers": { "showapi-mcp-131": { "url": "http://www.showapi.com.cn/mcp/131/{your_appKey}" } } }
标准 OpenAPI 3.0 文档,覆盖本接口全部接入点,可导入 Apifox / Postman / Swagger UI,或供 AI Agent 直接消费。
客服热线请拨打
400-998-8033