指数实时快照通达信
获取指数当前快照,返回点位、涨跌幅、成交量和成交额。
这个接口按指数代码请求当前快照。指数没有真实五档盘口,所以这里只返回指数有意义的行情字段。
输入参数
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
code | string | 是 | 指数代码:支持 000001.SH、399001.SZ、sh000001;批量可传列表或英文逗号分隔。 |
参数示例
# 单个指数
client.call("index_realtime_snapshot_tdx", code="000001.SH")
# 批量请求多个指数
client.call("index_realtime_snapshot_tdx", code=["000001.SH", "399001.SZ", "899050.BJ"])返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
instrument_id | string | AxData 统一指数代码,例如 000001.SH。 |
symbol | string | 交易所原始六位指数代码。 |
tdx_code | string | TDX 带市场前缀代码,例如 sh000001。 |
exchange | string | AxData 交易所代码:SSE、SZSE 或 BSE。 |
last_price | number | 最新点位。 |
pre_close | number | 昨收点位。 |
open | number | 开盘点位。 |
high | number | 最高点位。 |
low | number | 最低点位。 |
change | number | 涨跌点数。 |
change_pct | number | 涨跌幅,百分比数值。 |
open_change_pct | number | 开盘涨幅,百分比数值。 |
high_change_pct | number | 最高涨幅,百分比数值。 |
low_change_pct | number | 最低涨幅,百分比数值。 |
amplitude_pct | number | 振幅,百分比数值。 |
volume | integer | 指数快照携带的成交量。 |
current_volume | integer | 指数快照携带的最近成交量。 |
amount | number | 指数快照携带的成交额,单位:元。 |
open_amount | number | 开盘金额,单位:元。 |
rise_speed | number | 涨速,百分比数值。 |
activity | integer | 活跃度。 |
调用示例
Python SDK
import axdata as ax
client = ax.AxDataClient()
rows = client.call(
"index_realtime_snapshot_tdx",
code=['000001.SH', '399001.SZ', '899050.BJ'],
)
HTTP API
POST /v1/request/index_realtime_snapshot_tdx
Content-Type: application/json
{
"params": {
"code": [
"000001.SH",
"399001.SZ",
"899050.BJ"
]
}
}
真实样例快照
展示插件接口目录里的固定 example.response,页面打开不会再次请求源端。
请求参数
{
"code": [
"000001.SH",
"399001.SZ",
"899050.BJ"
]
}
响应样例
| instrument_id | symbol | tdx_code | exchange | last_price | pre_close | open | high | low | change | change_pct | open_change_pct | high_change_pct | low_change_pct | amplitude_pct | volume | current_volume | amount | open_amount | rise_speed | activity |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 000001.SH | 000001 | sh000001 | SSE | 4092.76 | 4108.08 | 4094.23 | 4117.45 | 4080.29 | -15.32 | -0.3729 | -0.3372 | 0.2281 | -0.6764 | 0.9046 | 428544019 | 1003780374528.0 | ||||
| 399001.SZ | 399001 | sz399001 | SZSE | 15970.86 | 15880.95 | 15826.79 | 16075.6 | 15825.32 | 89.91 | 0.5662 | -0.3408 | 1.2269 | -0.3503 | 1.576 | 504870820 | 1132737855488.0 |
生成时间:2026-07-06T16:54:55+00:00