---
title: "指数日线（默认上证综指）"
method: GET
path: "/v1/indices/daily"
tags: ["指数"]
---

# 指数日线（默认上证综指）

`GET /v1/indices/daily`

## Request

- Base URL: `https://quantsonar.com`
- URL: `https://quantsonar.com/v1/indices/daily`
- Auth: API key in header `X-API-Key`

## Query parameters

- `symbol` string, nullable: 指数代码（带后缀），如 000300.SH；缺省 000001.SH
- `start_date` string, nullable: 起始日期 YYYYMMDD
- `end_date` string, nullable: 结束日期 YYYYMMDD
- `trade_date` string, nullable: 单个交易日 YYYYMMDD（与 start/end 二选一）

## Response `200`

Successful Response

- object[]
  - `symbol` unknown
  - `trade_date` unknown
  - `close` unknown
  - `open` unknown
  - `high` unknown
  - `low` unknown
  - `pre_close` unknown
  - `change` unknown
  - `pct_chg` unknown
  - `vol` unknown
  - `amount` unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/quantsonar/apis/quantsonar-agent-data-api.md) · [All operations](https://skmtc.dev/quantsonar/apis/quantsonar-agent-data-api/llms.txt) · [OpenAPI document](https://skmtc.dev/quantsonar/apis/quantsonar-agent-data-api/revisions/1457cc05fb2b?raw)
