标的列表获取
元信息域的标的列表获取接口,用于批量获取代码表,支持按交易所 / 资产类别过滤。
响应是完整标的信息(thscode / ticker / name / exchange / asset_type / currency),
所有接口均返回统一响应信封 ApiResponse。
通用约定
- Base URL:
https://fuyao.aicubes.cn。 - 必需请求头:
X-api-key,缺失或无效返回code=2001。 - 时间戳字段统一为毫秒级 Unix 时间戳。
GET /api/meta/tickers/list
MCP Tool:get_meta_tickers_list
批量获取代码表,支持按交易所 / 资产类别过滤。采用 offset / limit 分页,
调用方循环递增 offset 直到 item.length < limit 即可取尽。
请求参数
| 参数 | 位置 | 类型 | 必需 | 说明 | 默认值 |
|---|---|---|---|---|---|
asset_type | query | string | 否 | 资产类别:a-share / a-share-index。 | a-share |
limit | query | integer | 否 | 单页条数,最大 10000。 | 1000 |
offset | query | integer | 否 | 分页偏移。 | 0 |
请求示例
# 拉取全部 A 股
curl 'https://fuyao.aicubes.cn/api/meta/tickers/list?asset_type=a-share&limit=1000&offset=0' \
-H 'X-api-key: <your-api-key>'
# 拉取 A 股指数
curl 'https://fuyao.aicubes.cn/api/meta/tickers/list?asset_type=a-share-index&limit=500' \
-H 'X-api-key: <your-api-key>'
响应示例
{
"code": 0,
"message": "success",
"request_id": "f7g8h9i0",
"data": {
"timestamp": 1716105600000,
"item": [
{
"thscode": "600519.SH",
"ticker": "600519",
"name": "贵州茅台",
"exchange": "SH",
"asset_type": "a-share",
"currency": "CNY"
}
]
}
}
响应字段
| 字段 | 类型 | 说明 |
|---|---|---|
timestamp | long | 数据就绪时间(毫秒),为当前代码表快照的上游加载时间。 |
item | array | 标的列表。 |
item[] 为 TickerItem:
| 字段 | 类型 | 说明 |
|---|---|---|
thscode | string | 完整 thscode,如 600519.SH。 |
ticker | string | 纯代码,如 600519。 |
name | string | 展示名称。 |
exchange | string | 交易所后缀(SH / SZ / BJ),无后缀指数为 null。 |
asset_type | string | 对外资产类别(a-share / a-share-index)。 |
currency | string | 币种代码,A 股恒为 CNY。 |