基金估值跟踪
fundGEThttps://v1.apizero.cn/api/fund概述
基金估值跟踪,一接口聚合「基金实时估值 / 指数行情 / 基金详情 / 全部常用指数批量」4 大功能,覆盖国内基金 + A 股核心指数。 基于天天基金、新浪财经、东方财富三路服务,无需注册即可调用: • action=estimate — 基金实时估值(盘中每分钟更新,含单位净值、估算净值、估算涨跌幅、上次净值日期) • action=index — 单个指数行情(新浪主、东方财富备双通道容灾,含当前点位、涨跌点、涨跌幅) • action=info — 基金详细信息(名称、净值、累计净值、近 1 月/3 月/6 月/1 年/3 年/成立来收益、基金类型、风险等级、规模、基金经理、成立日、管理人) • action=indices — 6 个常用指数批量(上证、深证成指、创业板、上证 50、沪深 300、中证 500) 本接口已修复源码中「新浪通道缺 sh/sz 前缀」的 bug,并优化了 HTML 爬虫的容错。
调用约定
- 网关 ·
https://v1.apizero.cn - 鉴权 ·
Authorization: Bearer <API Key> - 回包 · JSON {code, msg, data}。成功看 code === 0,不要只看 HTTP 200。
/aidocs/fund/raw.md鉴权
匿名每日 50 次、QPS 2;登录用户每日 200 次、QPS 5(全部免费)。盘中数据已内置 30~60 秒缓存,info 详情缓存 6 小时。
获取 API Key:获取 API Key/account/keys
请求头
推荐:Bearer <API Key>。兼容请求头 X-API-Key,以及 Query api_key / apikey / key(key 仅当值为 sk_live_/sk_test_/sk_stag_ 形态时生效)。匿名可不传,受每日免费额度限制。
| Header | 类型 | 必填 | 说明 |
|---|---|---|---|
| Authorization | string | 否 | 推荐:Bearer <API Key>。兼容请求头 X-API-Key,以及 Query api_key / apikey / key(key 仅当值为 sk_live_/sk_test_/sk_stag_ 形态时生效)。匿名可不传,受每日免费额度限制。 |
请求参数
GET · QUERY STRING · https://v1.apizero.cn/api/fund?action=estimate&code=005827
操作类型:estimate=基金估值 / index=单个指数 / info=基金详情 / indices=全部常用指数
例estimate
基金或指数代码(6 位数字);当 action 为 estimate/index/info 时必填,indices 时不需要
例005827
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| action(操作) | string | 是 | 操作类型:estimate=基金估值 / index=单个指数 / info=基金详情 / indices=全部常用指数 | estimate |
| code(编码) | string | 否 | 基金或指数代码(6 位数字);当 action 为 estimate/index/info 时必填,indices 时不需要 | 005827 |
返回结果
顶层固定为 code / msg / data。下表一般是 data 内字段。 code · msg · data · tips · request_id
回传的 action 标识(estimate/index/info/indices)
基金代码(estimate/info)
基金名称(estimate/info)
单位净值(estimate/info)
估算净值(estimate;盘中每分钟更新)
估算涨跌幅 % 或字符串带 % (estimate=number / index/info=string)
上次净值日期 YYYY-MM-DD(estimate)
估值更新时间(estimate)
指数代码(index)
指数名称(index)
当前点位(index)
涨跌点(index)
数据源:sina / eastmoney(index)
累计净值(info)
近 1 月收益(info)
近 3 月收益(info)
近 6 月收益(info)
近 1 年收益(info)
近 3 年收益(info)
成立来收益(info)
基金类型,如「混合型-偏股」(info)
风险等级(info)
基金规模,如「267.93亿元」(info)
基金经理(info)
成立日期 YYYY-MM-DD(info)
管理公司(info)
指数总数(indices;当前固定 6)
指数列表(indices;元素结构同 index 返回)
list 的一项
品牌提示(所有接口统一返回):极数本源 · https://apizero.cn
| 字段 | 类型 | 说明 | |||
|---|---|---|---|---|---|
| action | string | 回传的 action 标识(estimate/index/info/indices) | |||
| fund_code | string | 基金代码(estimate/info) | |||
| fund_name | string | 基金名称(estimate/info) | |||
| net_value | number | 单位净值(estimate/info) | |||
| estimate | number | 估算净值(estimate;盘中每分钟更新) | |||
| change_rate | number|string | 估算涨跌幅 % 或字符串带 % (estimate=number / index/info=string) | |||
| nav_date | string | 上次净值日期 YYYY-MM-DD(estimate) | |||
| update_time | string | 估值更新时间(estimate) | |||
| index_code | string | 指数代码(index) | |||
| index_name | string | 指数名称(index) | |||
| current_value | number | 当前点位(index) | |||
| change_amount | number | 涨跌点(index) | |||
| source | string | 数据源:sina / eastmoney(index) | |||
| total_net_value | number | 累计净值(info) | |||
| return_1m | string | 近 1 月收益(info) | |||
| return_3m | string | 近 3 月收益(info) | |||
| return_6m | string | 近 6 月收益(info) | |||
| return_1y | string | 近 1 年收益(info) | |||
| return_3y | string | 近 3 年收益(info) | |||
| return_total | string | 成立来收益(info) | |||
| fund_type | string | 基金类型,如「混合型-偏股」(info) | |||
| risk_level | string | 风险等级(info) | |||
| fund_scale | string | 基金规模,如「267.93亿元」(info) | |||
| fund_manager | string | 基金经理(info) | |||
| establish_date | string | 成立日期 YYYY-MM-DD(info) | |||
| company | string | 管理公司(info) | |||
| count | number | 指数总数(indices;当前固定 6) | |||
| list | array | 指数列表(indices;元素结构同 index 返回) | |||
| |||||
| tips | string | 品牌提示(所有接口统一返回):极数本源 · https://apizero.cn | |||
返回示例
{
"code": 0,
"msg": "成功",
"data": {
"action": "estimate",
"fund_code": "005827",
"fund_name": "易方达蓝筹精选混合",
"nav_date": "2026-04-30",
"net_value": 1.7393,
"estimate": 1.727,
"change_rate": -0.71,
"update_time": "2026-05-06 15:00"
},
"request_id": "abc123def456",
"tips": "极数本源 · https://apizero.cn"
}请求示例
示例都是服务端写法。Python / JavaScript 各有常规写法和官方库。
curl -sS -H "Authorization: Bearer YOUR_API_KEY" "https://v1.apizero.cn/api/fund?action=estimate&code=005827"错误码
先看业务 code。HTTP 也可能不是 200。
成功
参数错误
API Key 无效
API Key 已暂停
当前 IP 不在 Key 白名单
此接口需要 API Key
余额不足
调用过快(QPS)
今日免费额度已用完
接口已下线
接口不存在
服务器内部错误
上游暂时不可用
上游返回格式异常
暂无可用节点
| 业务码 | HTTP | 说明 |
|---|---|---|
| 0 | 200 | 成功 |
| 4000 | 400 | 参数错误 |
| 4011 | 401 | API Key 无效 |
| 4013 | 403 | API Key 已暂停 |
| 4014 | 403 | 当前 IP 不在 Key 白名单 |
| 4015 | 401 | 此接口需要 API Key |
| 4022 | 402 | 余额不足 |
| 4029 | 429 | 调用过快(QPS) |
| 4030 | 429 | 今日免费额度已用完 |
| 4040 | 503 | 接口已下线 |
| 4041 | 404 | 接口不存在 |
| 5000 | 500 | 服务器内部错误 |
| 5020 | 502 | 上游暂时不可用 |
| 5021 | 502 | 上游返回格式异常 |
| 5030 | 502 | 暂无可用节点 |
调用限制
- 计费模式
- 完全免费
- QPS 限制
- QPS 3
- 登录免费额度
- 200 次(已认证)
- 匿名每日额度
- 50 次(无 API Key)
- 黄金会员
- 每天 50,000 次 · QPS 10
- 钻石会员
- 每天 100,000 次 · QPS 30
- 企业会员
- 每天 1,000,000 次 · QPS 120
| 计费模式 | 完全免费 |
|---|---|
| QPS 限制 | QPS 3 |
| 登录免费额度 | 200 次(已认证) |
| 匿名每日额度 | 50 次(无 API Key) |
| 黄金会员 | 每天 50,000 次 · QPS 10 |
| 钻石会员 | 每天 100,000 次 · QPS 30 |
| 企业会员 | 每天 1,000,000 次 · QPS 120 |
购买套餐、看评价请走商城详情。 购买 / 调试
更新日志
- 1.0.02026-05-06
首次上线,聚合基金估值/指数行情/基金详情/批量指数 4 个 action 修复源码新浪通道缺 sh/sz 前缀的 bug(创业板等深证指数原本无法走主通道) 修复 HTML 爬虫的成立日 + 管理人 regex(源码 regex 不识别 </span> 拦截) 内建分级缓存:实时数据 30-60 秒、详情 6 小时 服务异常时单个指数失败不阻塞批量返回(indices)
免责声明
本接口数据仅供参考,不构成任何投资建议。基金有风险,投资需谨慎。基金详情字段(info action)依赖天天基金 HTML 页面解析,页面改版可能影响部分字段提取。