基金估值跟踪

fundGET
GEThttps://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
打开 Markdown

鉴权

匿名每日 50 次、QPS 2;登录用户每日 200 次、QPS 5(全部免费)。盘中数据已内置 30~60 秒缓存,info 详情缓存 6 小时。

获取 API Key

请求头

Authorizationstring选填

推荐: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

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

actionstring

回传的 action 标识(estimate/index/info/indices)

fund_codestring

基金代码(estimate/info)

fund_namestring

基金名称(estimate/info)

net_valuenumber

单位净值(estimate/info)

estimatenumber

估算净值(estimate;盘中每分钟更新)

change_ratenumber|string

估算涨跌幅 % 或字符串带 % (estimate=number / index/info=string)

nav_datestring

上次净值日期 YYYY-MM-DD(estimate)

update_timestring

估值更新时间(estimate)

index_codestring

指数代码(index)

index_namestring

指数名称(index)

current_valuenumber

当前点位(index)

change_amountnumber

涨跌点(index)

sourcestring

数据源:sina / eastmoney(index)

total_net_valuenumber

累计净值(info)

return_1mstring

近 1 月收益(info)

return_3mstring

近 3 月收益(info)

return_6mstring

近 6 月收益(info)

return_1ystring

近 1 年收益(info)

return_3ystring

近 3 年收益(info)

return_totalstring

成立来收益(info)

fund_typestring

基金类型,如「混合型-偏股」(info)

risk_levelstring

风险等级(info)

fund_scalestring

基金规模,如「267.93亿元」(info)

fund_managerstring

基金经理(info)

establish_datestring

成立日期 YYYY-MM-DD(info)

companystring

管理公司(info)

countnumber

指数总数(indices;当前固定 6)

listarray

指数列表(indices;元素结构同 index 返回)

list[]string

list 的一项

tipsstring

品牌提示(所有接口统一返回):极数本源 · 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。

0200

成功

4000400

参数错误

4011401

API Key 无效

4013403

API Key 已暂停

4014403

当前 IP 不在 Key 白名单

4015401

此接口需要 API Key

4022402

余额不足

4029429

调用过快(QPS)

4030429

今日免费额度已用完

4040503

接口已下线

4041404

接口不存在

5000500

服务器内部错误

5020502

上游暂时不可用

5021502

上游返回格式异常

5030502

暂无可用节点

调用限制

计费模式
完全免费
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 页面解析,页面改版可能影响部分字段提取。

基金估值跟踪 接入文档|极数本源