跳到主要内容

标的列表获取

元信息域的标的列表获取接口,用于批量获取代码表,支持按资产类型过滤。 响应是完整标的信息(thscode / ticker / name / exchange / asset_type / currency), 所有接口均返回统一响应信封 ApiResponse

通用约定
  • Base URLhttps://fuyao.aicubes.cn
  • 必需请求头X-api-key,缺失或无效返回 code=2001
  • 时间戳字段统一为毫秒级 Unix 时间戳。
GET /api/meta/tickers/list

MCP Toolget_meta_tickers_list

批量获取代码表,支持按资产类型过滤。采用 offset / limit 分页, 调用方循环递增 offset 直到 item.length < limit 即可取尽。

请求参数

参数位置类型必需说明默认值
asset_typequerystring规范化资产类型,支持单值或逗号分隔多值;省略时返回全部类型。全部类型
limitqueryinteger单页条数,最大 100001000
offsetqueryinteger分页偏移。0

asset_type 可选值:a-sharea-share-indexfund-otcfund-etffund-lof。传入任一非法值返回 code=1003

asset_type含义
a-shareA 股股票
a-share-indexA 股指数、同花顺指数或板块
fund-otc场外公募基金
fund-etfETF 基金
fund-lofLOF 基金

请求示例

# 拉取全部 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>'

# 同时拉取 ETF 与 LOF
curl 'https://fuyao.aicubes.cn/api/meta/tickers/list?asset_type=fund-etf,fund-lof&limit=1000&offset=0' \
-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"
}
]
}
}

响应字段

字段类型说明
timestamplong数据就绪时间(毫秒),为当前代码表快照的上游加载时间。
itemarray标的列表。

item[]TickerItem

字段类型说明
thscodestring完整 thscode,如 600519.SH
tickerstring纯代码,如 600519
namestring展示名称。
exchangestring | null交易所后缀(SH / SZ / BJ);场外基金为 null.OF 不是交易所。
asset_typestring规范化资产类型;每条记录仅返回一个叶子类型,含义同请求参数枚举表。
currencystring币种代码;当前基金统一为 CNY