Skip to Content
数据接口库市场接口指数与行情大盘指数

大盘指数

获取主要股指实时数据。

HTTP 方法与路径GET /api/v1/market/indices

入参

Path

| 路径参数 | 无 |

Query

| Query 参数 | 无 |

响应

响应外壳:成功时 JSON 含 successdata、可选 message,见 统一响应体

响应示例

对应请求 GET /api/v1/market/indices。字段以线上为准。

{ "success": true, "data": { "total": 5, "diff": [ { "id": 2, "newPrice": 407990, "changeRate": -33, "upsDowns": -1335, "code": "000001", "marketId": 1, "name": "上证指数", "f152": 2 }, "..." ] } }

请求示例

curl -sS -H "Authorization: Bearer <API_KEY>" "http://localhost:4000/api/v1/market/indices"
Last updated on