指数历史日线腾讯财经
临时获取腾讯财经指数历史日线数据,默认不入库。
临时请求单只指数日线小窗口,默认不入库。
输入参数
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
code | string | 是 | 指数代码,支持 000001.SH、sh000001、399001.SZ。 | |
start_date | string | 否 | 开始日期,YYYYMMDD 或 YYYY-MM-DD;默认 20240101。 | "20240101" |
end_date | string | 否 | 结束日期,YYYYMMDD 或 YYYY-MM-DD;默认等于 start_date。 | |
adjust | string | 否 | 复权/源端复权标记:none、qfq、hfq;默认 qfq。 | "qfq" |
limit | integer | 否 | 日期过滤后最多返回行数,默认 120,最大 640。 | 120 |
返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
instrument_id | string | AxData 统一指数代码。 |
symbol | string | 六位指数代码。 |
exchange | string | 交易所代码:SSE、SZSE。 |
asset_type | string | 资产类型,固定为 index。 |
trade_date | date | 交易日期,格式 YYYYMMDD。 |
adjust | string | 复权或源端复权标记:none、qfq、hfq。 |
open | number | 开盘点位。 |
close | number | 收盘点位。 |
high | number | 最高点位。 |
low | number | 最低点位。 |
volume | number | 成交量,沿用腾讯源端指数日线口径。 |
amount | number | 成交额,沿用腾讯源端指数日线口径。 |
调用示例
Python SDK
import axdata as ax
client = ax.AxDataClient()
rows = client.call(
"stock_zh_index_daily_tx",
adjust='qfq',
code='000001.SH',
end_date='20240102',
limit=1,
start_date='20240102',
)
HTTP API
POST /v1/request/stock_zh_index_daily_tx
Content-Type: application/json
{
"params": {
"code": "000001.SH",
"start_date": "20240102",
"end_date": "20240102",
"adjust": "qfq",
"limit": 1
}
}
真实样例快照
展示插件接口目录里的固定 example.response,页面打开不会再次请求源端。
请求参数
{
"code": "000001.SH",
"start_date": "20240102",
"end_date": "20240102",
"adjust": "qfq",
"limit": 1
}
响应样例
| instrument_id | symbol | exchange | asset_type | trade_date | adjust | open | close | high | low | volume | amount |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 000001.SH | 000001 | SSE | index | 20240102 | qfq | 2972.78 | 2962.28 | 2976.27 | 2962.28 | 304141793.0 | 34595072.92 |
生成时间:2026-07-06T16:54:55+00:00