← 返回 Skills 市场
hl950825

fund-analyzer

作者 hl950825 · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
790
总下载
0
收藏
5
当前安装
1
版本数
在 OpenClaw 中安装
/install fund-analyzer
功能描述
提供基金净值查询、历史走势、基金筛选排行、持仓分析等功能,数据来源于支付宝基金页面。用于用户查询基金信息、分析基金表现、筛选优质基金等场景。
使用说明 (SKILL.md)

Fund Analyzer Skill

技能概述

本技能用于分析和管理基金投资,支持查询基金净值、查看历史走势、筛选排行、持仓分析等功能。数据主要来源于支付宝基金页面。

使用场景

当用户提出以下请求时,应使用本技能:

  • 查询某只基金的最新净值
  • 查看基金的历史收益率和走势
  • 筛选和比较基金的业绩排行
  • 分析基金的持仓情况
  • 推荐优质的基金产品

数据来源

主要数据来源:支付宝基金页面

  • 基金主页: https://fund.eastmoney.com/pingzhong.html?ft=type&fdm=0&fs=n&lcf=zqjj&fd=&rt=${fund_code}
  • 天天基金: https://fund.eastmoney.com/${fund_code}.html
  • 基金排行: https://fund.eastmoney.com/data/fundranking.html

备用数据源:

  • 天天基金网
  • 基金业协会官网

核心功能

1. 基金净值查询

使用 scripts/query_fund_nav.py 脚本查询基金净值:

python3 scripts/query_fund_nav.py \x3C基金代码>

返回信息包括:

  • 最新净值
  • 日涨跌幅
  • 近1周/1月/3月/6月/1年/3年收益率
  • 基金类型
  • 基金管理人

2. 历史走势查询

使用 scripts/query_fund_history.py 脚本查询历史数据:

python3 scripts/query_fund_history.py \x3C基金代码> --period \x3C1m|3m|6m|1y|3y|5y>

返回信息包括:

  • 净值曲线数据
  • 各时间段收益率
  • 同类排名
  • 风险指标(夏普比率、最大回撤等)

3. 基金筛选排行

使用 scripts/fund_screener.py 脚本筛选基金:

python3 scripts/fund_screener.py --rank \x3C近1年|近3年|近5年> --type \x3C股票型|混合型|债券型|指数型> --top \x3C数量>

筛选条件:

  • 基金类型
  • 收益率排行
  • 规模要求
  • 风险等级

4. 持仓分析

使用 scripts/query_fund_holding.py 脚本查询持仓:

python3 scripts/query_fund_holding.py \x3C基金代码>

返回信息包括:

  • 前十大持仓股票
  • 持仓占比
  • 行业分布
  • 持仓变化(较上季度)

基金代码格式

  • A股基金:6位数字(如 161039
  • 指数基金:带后缀(如 161039
  • 港股基金:5位数字(如 47011

使用示例

查询单一基金

查询 161039 这只基金的最新净值和收益情况

对比多只基金

对比 161039 和 110011 这两只基金的表现

筛选基金

帮我筛选近一年收益排名前十的股票型基金

持仓分析

分析 161039 这只基金的持仓情况

输出格式

基金分析结果应以清晰的表格或列表形式呈现,包含以下关键信息:

指标 说明
基金代码 6位数字代码
基金名称 基金全称
最新净值 当日单位净值
日涨跌 当日涨跌幅
近1年收益 过去12个月收益率
基金类型 股票型/混合型/债券型等
规模 基金总资产规模

注意事项

  1. 网络依赖:所有数据需要联网获取,可能存在延迟
  2. 数据准确性:建议多平台交叉验证
  3. 风险提示:基金投资有风险,入市需谨慎
  4. 频率限制:避免短时间内频繁请求,建议间隔1秒以上

相关脚本

脚本 功能
query_fund_nav.py 查询基金净值和基本信息
query_fund_history.py 查询历史走势数据
fund_screener.py 基金筛选和排行
query_fund_holding.py 查询基金持仓明细
compare_funds.py 对比多只基金

维护建议

  • 定期更新数据源URL
  • 注意网页结构变化可能影响爬取逻辑
  • 添加缓存机制减少重复请求
安全使用建议
This skill's code (Python scripts) performs web requests to fund.eastmoney.com and parses returned HTML/JS to produce fund metrics — that matches its purpose. However: 1) the documentation inconsistently mentions Alipay and simulating login/cookies (and even a placeholder fund.1234567.com), while the scripts target eastmoney; this mismatch could cause future instructions to request cookies or credentials — do NOT provide account cookies or secrets unless you fully trust and inspect updated code. 2) Review the included scripts locally before running, and run them in an isolated environment (container or VM) if you are unsure. 3) The install.sh assumes a ~/.codebuddy/skills path; confirm that path and the script before executing. 4) The scripts make network requests — expect rate limits and respect the site's terms of service. If you want a stronger assessment, provide provenance (who published the skill) or confirm whether the maintainer intends to use Alipay data (and how credentials/cookies would be handled).
功能分析
Type: OpenClaw Skill Name: fund-analyzer Version: 1.0.0 The fund-analyzer skill bundle is a legitimate tool for querying and analyzing Chinese mutual fund data from Eastmoney (fund.eastmoney.com). All scripts (e.g., query_fund_nav.py, fund_screener.py) use standard Python libraries to perform web scraping and data parsing via regular expressions, with no evidence of malicious intent, data exfiltration, or unauthorized system access. The installation script (install.sh) only sets execution permissions for the included Python files and does not perform any suspicious network or system modifications.
能力评估
Purpose & Capability
Name/description: fund analysis. The included Python scripts implement scraping and analysis against fund.eastmoney.com (天天基金/东方财富) which is coherent with the stated features. However SKILL.md and references/guide.md sometimes claim data comes from 支付宝 (Alipay) and reference a fund.1234567.com and simulating login/cookies — none of which the scripts actually use. This mismatch is an inconsistency to be aware of but not necessarily malicious.
Instruction Scope
Runtime instructions direct the agent/user to run local scripts that only perform HTTP requests to eastmoney endpoints and parse returned HTML/JS. The scripts do not read arbitrary local files or environment variables. The discrepancy: docs mention simulating login and cookies for Alipay data, but scripts don't implement login or request credential input — ambiguous guidance could lead to follow-up instructions asking for cookies.
Install Mechanism
No remote install spec; an included install.sh only sets execute bits and checks a local ~/.codebuddy/skills/fund-analyzer path. No downloads from third-party URLs or archives — low install risk.
Credentials
The skill declares no required env vars or credentials and the code does not require secrets. But documentation mentions simulated login and cookies for Alipay pages; if a later change or maintainer asks you to provide cookies/credentials, that would be disproportionate and risky. As shipped, no credentials are required.
Persistence & Privilege
Skill is user-invocable only (always: false). It does not request persistent elevated privileges or modify other skills. install.sh only touches its own directory and script permissions.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install fund-analyzer
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /fund-analyzer 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Fund Analyzer Skill v1.0.0 - Initial release with features for fund net value queries, historical trends, fund screening and ranking, and holdings analysis. - Data sourced primarily from the Alipay fund page, with backup sources including Tiantian Fund and industry websites. - Command-line scripts provided for key functionalities: querying NAV, historical performance, screening, and holdings. - Supports both individual fund queries and multi-fund comparisons. - Output formatted for clarity with structured tables and lists. - Includes usage scenarios, examples, and important notes on data reliability and request frequency.
元数据
Slug fund-analyzer
版本 1.0.0
许可证 MIT-0
累计安装 6
当前安装数 5
历史版本数 1
常见问题

fund-analyzer 是什么?

提供基金净值查询、历史走势、基金筛选排行、持仓分析等功能,数据来源于支付宝基金页面。用于用户查询基金信息、分析基金表现、筛选优质基金等场景。 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 790 次。

如何安装 fund-analyzer?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install fund-analyzer」即可一键安装,无需额外配置。

fund-analyzer 是免费的吗?

是的,fund-analyzer 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

fund-analyzer 支持哪些平台?

fund-analyzer 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 fund-analyzer?

由 hl950825(@hl950825)开发并维护,当前版本 v1.0.0。

💬 留言讨论