指数列表通达信
获取通达信代码表里的指数列表,默认只返回常规指数。
这个接口和最新股票列表同源,都是从代码总表里筛选。股票列表只筛股票,指数列表只筛指数。
输入参数
| 参数 | 类型 | 必填 | 说明 | 默认值 |
|---|---|---|---|---|
name | string | 否 | 指数简称过滤,例如 上证指数、沪深300。 | |
code | string | 否 | 指数代码过滤:支持 000001.SH、399001.SZ、sh000001。 | |
exchange | string | 否 | 交易所过滤:all 全部、SSE 上交所、SZSE 深交所、BSE 北交所;默认 all。 | "all" |
include_tdx_block_index | boolean | 否 | 是否包含通达信板块/行业/题材指数;默认 false。 | false |
参数示例
# 常规指数列表
client.call("index_codes_tdx")
# 指定几个指数
client.call("index_codes_tdx", code=["000001.SH", "399001.SZ", "899050.BJ"])
# 包含通达信板块/行业/题材指数
client.call("index_codes_tdx", include_tdx_block_index=True)返回字段
| 字段 | 类型 | 说明 |
|---|---|---|
instrument_id | string | AxData 统一指数代码,例如 000001.SH。 |
symbol | string | 交易所原始六位指数代码。 |
tdx_code | string | TDX 带市场前缀代码,例如 sh000001。 |
exchange | string | AxData 交易所代码:SSE、SZSE 或 BSE。 |
name | string | 指数简称。 |
index_type | string | 指数类型:official_index 常规指数,tdx_block_index 通达信板块/行业/题材指数。 |
previous_close | number | 代码表携带的昨收价。 |
调用示例
Python SDK
import axdata as ax
client = ax.AxDataClient()
rows = client.call(
"index_codes_tdx",
code=['000001.SH', '399001.SZ', '899050.BJ'],
)
HTTP API
POST /v1/request/index_codes_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 | name | index_type | previous_close |
|---|---|---|---|---|---|---|
| 000001.SH | 000001 | sh000001 | SSE | 上证指数 | official_index | 4108.0762 |
| 399001.SZ | 399001 | sz399001 | SZSE | 深证成指 | official_index | 15880.9512 |
| 899050.BJ | 899050 | bj899050 | BSE | 北证50 | official_index | 1280.246 |
生成时间:2026-07-06T16:54:55+00:00