Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By quantskillsGPL-3.0In 1 marketplace
Uses PandaAI fund data and ETF constituents to estimate holdings, concentration and sector/style exposure with risk notes; estimates do not replace full actual holdings.
Claude hands work to one, or you mention it with @.
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
简体中文 | English
原作者:Roland(xxkyuss);QUANTSKILLS 发布维护:abgyjaguo。社区项目,未声明官方认证或推荐。
一个基于 PandaAI 的 ETF / 基金持仓透视 Skill。输入基金代码,输出基金基础信息、Top 持仓、集中度、行业与主题暴露、风格判定、数据驱动洞察和风险提示。
A PandaAI-powered skill for ETF and fund holding analysis. Enter a fund symbol to generate basic fund information, top holdings, concentration metrics, sector and theme exposure, style classification, data-driven insights, and risk notes.
| 中文 | English |
|---|---|
| 基金信息卡片:名称、类型、管理人、托管人、基准、指数属性、QDII 标记和状态 | Fund profile: name, type, manager, custodian, benchmark, index attributes, QDII flag, and status |
| Top 持仓:按估算权重排序并展示行业 | Top holdings ranked by estimated weight with sector labels |
| 集中度:Top1、Top3、CR5、CR10、HHI 和有效成分数 | Concentration: Top1, Top3, CR5, CR10, HHI, and effective number of holdings |
| 行业与主题暴露:数据源行业分类加权统计和关键词粗映射 | Sector and theme exposure using source classifications and keyword mapping |
| 风格判定:宽基、主题、跨境、商品、债券、Smart Beta、主动管理等 | Style classification: broad-market, thematic, cross-border, commodity, bond, Smart Beta, and active management |
| 三端输出:终端 rich 表格、ECharts HTML、归一化 JSON | Three outputs: rich terminal report, ECharts HTML, and normalized JSON |
| API | 用途 / Purpose | 地位 / Role |
|---|---|---|
get_fund_detail | 基金基础信息 / Fund profile | 任务书指定 / Required |
get_fund_etf_constituents | ETF 申赎清单成分券 / ETF creation-redemption constituents | 任务书指定 / Required |
get_stock_daily | 名称和收盘价,用于估算权重 / Names and closing prices for estimated weights | 补充 / Optional enrichment |
get_stock_detail | 成分股行业分类 / Constituent sector classification | 补充 / Optional enrichment |
字段兼容和数据口径见 references/api_reference.md。
See references/api_reference.md for field compatibility rules and data conventions.
python -m pip install -r requirements.txt
python scripts/fund_xray.py --symbol 510300.SH
首次运行会交互式询问 PandaAI 账号和密码。密码不会回显,可选择保存到当前目录的 .env。.env 已被 .gitignore 忽略,不能上传到 GitHub。
On the first run, the script asks for PandaAI credentials interactively. The password is hidden while typing. You may save credentials to a local .env file. .env is ignored by .gitignore and must never be uploaded to GitHub.
# 沪深 300 ETF / CSI 300 ETF
python scripts/fund_xray.py --symbol 510300.SH
# 红利 ETF,检查 Smart Beta 判定 / Dividend ETF, Smart Beta check
python scripts/fund_xray.py --symbol 510880.SH
# 纳指 ETF,检查跨境和汇率风险 / Nasdaq ETF, cross-border risk check
python scripts/fund_xray.py --symbol 513100.SH
# 指定日期和 Top 数量 / Specify date and number of holdings
python scripts/fund_xray.py --symbol 159915.SZ --date 20260717 --top 20
# 只使用两个任务指定接口 / Use only the two required APIs
python scripts/fund_xray.py --symbol 510300.SH --no-enrich
# 输出 JSON / Generate JSON
python scripts/fund_xray.py --symbol 510300.SH --json --save report.json
# 场外主动基金会自动降级 / OTC active funds use the fallback path
python scripts/fund_xray.py --symbol 110011.OF
get_fund_detail 返回的核心字段。--top 调整。HTML 报告包含 Top10 条形图、行业权重环形图和洞察卡片。JSON 可供下游程序或前端使用。
The HTML report includes a Top10 bar chart, a sector exposure chart, and insight cards. JSON output can be consumed by downstream programs or front ends.
quantity × closing price 并按成分券口径归一化。绝对持仓市值还需要基金规模。index_fund_type,再结合业绩基准、跟踪指数和基金信息;不能只因为基准含指数就判定为被动。0=禁止、1=允许、2=必须,报告重点统计必须现金替代。SKILL.md # Skill instructions / 技能规范
README.md # This bilingual README / 双语说明
LICENSE # GPL-3.0-only license
THIRD_PARTY_NOTICES.md # Preserved original MIT notice
requirements.txt # Python dependencies / Python 依赖
scripts/fund_xray.py # Main CLI / 主脚本
scripts/test_fund_xray.py # Offline and integration tests / 测试
references/api_reference.md # API and schema notes / 接口参考
examples/ # Sample HTML report and screenshot / 示例报告
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
fund-holding-xray@quantskills is listed by quantskills/registry — review the source before installing
npx claudepluginhub quantskills/registry --plugin fund-holding-xrayPlugins from other owners that cover similar ground