跳到主要内容
基金数据 API

组合诊断

/v1/fund-portfolio-diagnose机构版

一次拿到整个组合的诊断结果:行业暴露与集中度、穿透后前十大重仓、两两基金的重叠度、多期仓位趋势,以及加权费率合计。回答「行业押在哪、仓位有多重、哪两只重得最厉害、费率吃掉多少」。机构版可用。

回答的问题:我这个基金组合,行业押在哪、仓位有多重、费率合计多少、哪两只重得最厉害?

请求参数

参数必填类型默认说明
codes✅string—1–6 只基金代码,逗号分隔,如 110022,009265
weights✅string—与 codes 一一对应的权重,逗号分隔,如 0.6,0.4

响应字段

字段类型说明
funds[]array组合成员:code / name / weight / scale_yi / equity_pct / report_period / fee_annual_pct
industry_exposureobject行业暴露:as_of / covered_weight_pct / concentration / list[]
industry_exposure.list[].name / weight_pctstring|number行业名 / 在组合中的权重(%)
industry_exposure.list[].funds[]array该行业在各基金里的占比:code / pct
industry_exposure.concentrationobject集中度指标(如前 3 行业占比)
top_holdingsobject穿透后前十大:stock_count / covered_weight_pct / list[]
overlap[]array两两重叠:pair(两只代码)/ common_count / common[]
position_trend.quarters[]array多期股票仓位:report_date / weighted_stock_pct
feeobject加权年化费率与逐只拆解:weighted_annual_pct / components / list[]

真实响应样例

用 110022 实抓的真实响应。列表类字段已截短以便阅读(原始响应更完整); 其中的 elapsed_ms 是某一次的耗时,首次请求通常 1–3 秒。

{
  "ok": true,
  "endpoint": "fund-portfolio-diagnose",
  "tier": "institutional",
  "elapsed_ms": 4042,
  "data": {
    "funds": [
      {
        "code": "110022",
        "name": "易方达消费行业股票",
        "weight": 0.6,
        "scale_yi": 101.09,
        "equity_pct": 90.45,
        "report_period": "2026年3季度",
        "fee_annual_pct": 1.4
      },
      {
        "code": "009265",
        "name": "易方达消费精选股票",
        "weight": 0.4,
        "scale_yi": 21.76,
        "equity_pct": 89.4,
        "report_period": "2026年3季度",
        "fee_annual_pct": 1.4
      }
    ],
    "industry_exposure": {
      "as_of": [
        "2026年3季度"
      ],
      "covered_weight_pct": 90.032,
      "concentration": {
        "top3_pct": 84.822,
        "top5_pct": 88.326
      },
      "list": [
        {
          "name": "制造业",
          "weight_pct": 74.308,
          "funds": [
            {
              "code": "110022",
              "pct": 88.4
            },
            {
              "code": "009265",
              "pct": 53.17
            }
          ]
        },
        {
          "name": "非必需消费品",
          "weight_pct": 7.984,
          "funds": [
            {
              "code": "009265",
              "pct": 19.96
            }
          ]
        },
        {
          "name": "租赁和商务服务业",
          "weight_pct": 2.53,
          "funds": [
            {
              "code": "110022",
              "pct": 0.95
            },
            {
              "code": "009265",
              "pct": 4.9
            }
          ]
        }
      ]
    },
    "top_holdings": {
      "stock_count": 14,
      "covered_weight_pct": 68.602,
      "list": [
        {
          "code": "600519",
          "name": "贵州茅台",
          "weight_pct": 9.904,
          "via": [
            {
              "code": "110022",
              "weight": 0.6,
              "nav_ratio": 9.96,
              "contrib_pct": 5.976
            },
            {
              "code": "009265",
              "weight": 0.4,
              "nav_ratio": 9.82,
              "contrib_pct": 3.928
            }
          ],
          "fund_count": 2
        },
        {
          "code": "000333",
          "name": "美的集团",
          "weight_pct": 8.048,
          "via": [
            {
              "code": "110022",
              "weight": 0.6,
              "nav_ratio": 9.48,
              "contrib_pct": 5.688
            },
            {
              "code": "009265",
              "weight": 0.4,
              "nav_ratio": 5.9,
              "contrib_pct": 2.36
            }
          ],
          "fund_count": 2
        },
        {
          "code": "600809",
          "name": "山西汾酒",
          "weight_pct": 7.004,
          "via": [
            {
              "code": "110022",
              "weight": 0.6,
              "nav_ratio": 8.62,
              "contrib_pct": 5.172
            },
            {
              "code": "009265",
              "weight": 0.4,
              "nav_ratio": 4.58,
              "contrib_pct": 1.832
            }
          ],
          "fund_count": 2
        }
      ]
    },
    "overlap": [
      {
        "pair": [
          "110022",
          "009265"
        ],
        "common_count": 6,
        "common": [
          {
            "code": "600519",
            "name": "贵州茅台",
            "nav_ratio": {
              "110022": 9.96,
              "009265": 9.82
            }
          },
          {
            "code": "000333",
            "name": "美的集团",
            "nav_ratio": {
              "110022": 9.48,
              "009265": 5.9
            }
          },
          {
            "code": "002594",
            "name": "比亚迪",
            "nav_ratio": {
              "110022": 8.64,
              "009265": 4.26
            }
          }
        ]
      }
    ],
    "position_trend": {
      "quarters": [
        {
          "report_date": "2024-12-31",
          "weighted_stock_pct": 89.362
        },
        {
          "report_date": "2025-03-31",
          "weighted_stock_pct": 90.51
        },
        {
          "report_date": "2025-06-30",
          "weighted_stock_pct": 89.43
        }
      ],
      "latest_weighted_stock_pct": 90.03,
      "note": "股票市值占基金净值的比例,逐季取自基金季报/年报;只保留所有基金都有披露的报告期,最多回看 8 季。"
    },
    "fee": {
      "weighted_annual_pct": 1.4,
      "components": [
        "管理费",
        "托管费"
      ],
      "list": [
        {
          "code": "110022",
          "name": "易方达消费行业股票",
          "weight": 0.6,
          "manage_pct": 1.2,
          "custodian_pct": 0.2,
          "annual_pct": 1.4,
          "buy_fee": 1.5,
          "buy_fee_discount": 0.15,
          "state": "开放申购 开放赎回 开放定投"
        },
        {
          "code": "009265",
          "name": "易方达消费精选股票",
          "weight": 0.4,
          "manage_pct": 1.2,
          "custodian_pct": 0.2,
          "annual_pct": 1.4,
          "buy_fee": 1.5,
          "buy_fee_discount": 0.15,
          "state": "开放申购 开放赎回 开放定投"
        }
      ]
    },
    "method": "行业暴露 = Σ(基金权重 × 该行业占基金净值比);重仓穿透 = Σ(基金权重 × 个股占基金净值比);费率合计 = Σ(基金权重 × (管理费率 + 托管费率))。权重按比例处理(传 60/40 或 0.6/0.4 均可)。",
    "note": "⚠️ 行业暴露与重仓穿透都只覆盖**季报披露的前 10 大重仓股**,不等于基金的全部持仓;行业名称按数据源分类汇总,A 股为证监会门类、港股为港股行业分类,同名才相加。费率合计只含管理费与托管费,不含销售服务费和一次性申赎费用。"
  }
}

调用示例

curl "https://api.fundapi.cn/v1/fund-portfolio-diagnose?code=110022" \
  -H "Authorization: Bearer 你的API Key" \
  -H "User-Agent: your-app"

注意

权重必须与代码数量一致

`codes` 与 `weights` 个数不等会直接报错。权重用 0.6 / 0.4 或 60 / 40 都行,但⛔ 不要混用两种写法。

行业分类用统一分类,不是基金自己报的

行业暴露是按持仓股票的行业归属重新归类后汇总的,可能与基金季报里写的行业分布不完全一致。

费率只算管理费 + 托管费

`fee.components` 会列出参与了哪些费用项。申购费、销售服务费不在年化费率里,⛔ 不要把它当成持有总成本。