Fund Keeper - Intelligent Fund Advisor
A comprehensive tool for Chinese mutual fund management with real-time valuation, buy/sell suggestions, and portfolio tracking.
Quick Start
1. Install Dependencies
CODEBLOCK0
2. Create Fund List
Create your portfolio in workspace/funds/my-funds.md:
CODEBLOCK1
3. Commands
CODEBLOCK2
Core Features
1. Real-time Valuation
- - Fetch real-time NAV estimates from public sources
- Compare with historical NAV, calculate daily change
- Support QDII funds (HK/US markets)
2. Buy/Sell Suggestions
Based on comprehensive analysis:
- - Valuation: PE/PB historical percentile
- Technical: Moving averages, MACD, RSI
- Market Sentiment: Capital flow, news
- Cost Basis: Compare with your holding cost
Suggestion Levels:
- - Strong Sell: Overvalued + technical top divergence
- Consider Selling: Overvalued or profit target reached
- Hold: Normal range
- Consider Buying: Undervalued or SIP opportunity
- Strong Buy: Significantly undervalued + technical bottom divergence
3. OCR Fund Recognition
Support screenshot recognition from:
- - Alipay fund holdings
- Fund platform screenshots
- Bank app fund pages
Auto-extract:
- - Fund code
- Fund name
- Shares held
- Amount
4. Smart Alerts
- - NAV reaches target price
- Daily change exceeds threshold
- Market volatility
- SIP date reminders
Fund Search
CODEBLOCK3
Portfolio Management
CODEBLOCK4
Editable Fields
- -
name - Fund name - INLINECODE2 - Amount held
- INLINECODE3 - Take profit %
- INLINECODE4 - Stop loss %
- INLINECODE5 - SIP day
- INLINECODE6 - Notes
Gold Investment Report
CODEBLOCK5
Includes:
- - International gold price (AUTD)
- Gold fund (000218) real-time NAV
- Investment suggestions (buy/hold/sell)
Profit Visualization
CODEBLOCK6
Data Sources & Caching
Multi-source Support:
- - TTJJ (default, fastest)
- EastMoney
- Sina Finance (backup)
Caching:
- - Auto-cache results (30 min valid)
- Offline mode: INLINECODE7
Important Notes
Investment Risk
- - This tool is for reference only, not investment advice
- Market risks exist, invest carefully
- Diversification recommended
Data Delay
- - Mutual fund NAV updates once daily (evening)
- Real-time estimates are approximations
- QDII funds have T+2 delay
Stock-Fund Linkage (v2.2)
Link with stock-analysis skill:
CODEBLOCK7
Scheduled Tasks
CODEBLOCK8
Related Files
- -
funds/my-funds.md - Portfolio list - INLINECODE9 - Configuration
- INLINECODE10 - Transaction history
- INLINECODE11 - Investment insights
Long-term investing, rational decisions. 🐔
基金管家 - 智能基金顾问
一款综合性中国公募基金管理工具,提供实时估值、买卖建议及投资组合追踪功能。
快速开始
1. 安装依赖
bash
pip install akshare pandas requests
2. 创建基金列表
在 workspace/funds/my-funds.md 中创建您的投资组合:
markdown
我的基金投资组合
持仓明细
| 基金代码 | 基金名称 | 持有份额 | 成本净值 | 备注 |
|---|
| 000001 | 华夏成长 | 10000 | 1.500 | 定投 |
| 110011 |
易方达中小盘 | 5000 | 2.300 | 长期持有 |
3. 命令操作
bash
查看投资组合盈亏
fund-keeper portfolio
获取买卖建议
fund-keeper advice
查看配置
fund-keeper config
修改配置
fund-keeper config --set alert_threshold=2.0
重置配置
fund-keeper config --reset
从截图添加基金
fund-keeper add-from-image screenshot.png
查看市场概览
fund-keeper market
设置提醒
fund-keeper alert --fund 000001 --price 1.800
核心功能
1. 实时估值
- - 从公开数据源获取实时净值估算
- 与历史净值对比,计算当日涨跌幅
- 支持QDII基金(港股/美股市场)
2. 买卖建议
基于综合分析:
- - 估值分析:PE/PB历史百分位
- 技术分析:移动平均线、MACD、RSI
- 市场情绪:资金流向、新闻动态
- 成本分析:与您的持仓成本对比
建议等级:
- - 强烈卖出:高估+技术顶背离
- 考虑卖出:高估或达到止盈目标
- 持有:正常范围
- 考虑买入:低估或定投机会
- 强烈买入:显著低估+技术底背离
3. OCR基金识别
支持从以下来源的截图识别:
自动提取:
4. 智能提醒
- - 净值达到目标价格
- 当日涨跌幅超过阈值
- 市场波动预警
- 定投日期提醒
基金搜索
bash
py fund_keeper.py search --name 黄金 # 按名称搜索
py fund_keeper.py search --fund 000218 # 查看基金详情
投资组合管理
bash
编辑基金
py fund_keeper.py edit --fund 000218 # 交互式编辑
py fund_keeper.py edit --fund 000218 --field amount --value 10000
删除基金
py fund_keeper.py remove --fund 000218
可编辑字段
- - name - 基金名称
- amount - 持有金额
- profit - 止盈百分比
- stop - 止损百分比
- day - 定投日
- note - 备注
黄金投资报告
bash
py fund_keeper.py gold
包含内容:
- - 国际金价(AUTD)
- 黄金基金(000218)实时净值
- 投资建议(买入/持有/卖出)
收益可视化
bash
py fund_keeper.py stats # 基础统计
py fund_keeper.py stats --chart # 带图表展示
py fund_keeper.py trend # 7日趋势
数据源与缓存
多源支持:
- - 天天基金(默认,速度最快)
- 东方财富
- 新浪财经(备用)
缓存机制:
- - 自动缓存结果(有效期30分钟)
- 离线模式:--offline
重要提示
投资风险
- - 本工具仅供参考,不构成投资建议
- 市场有风险,投资需谨慎
- 建议分散投资
数据延迟
- - 公募基金净值每日更新一次(晚间)
- 实时估值为近似值
- QDII基金存在T+2延迟
股票-基金联动(v2.2)
与股票分析技能联动:
bash
按板块推荐基金
python stock
fundlinkage.py --sector 半导体
分析基金持仓
python stock
fundlinkage.py --fund 000218
定时任务
bash
每日15:00收盘后
openclaw cron add --name 基金检查 --cron 0 15
1-5 \
--session isolated --message 检查基金估值并生成报告
每周一8:00周报
openclaw cron add --name 基金周报 --cron 0 8
1 \
--session isolated --message 生成基金投资组合周报
相关文件
- - funds/my-funds.md - 投资组合列表
- funds/config.json - 配置文件
- funds/history.md - 交易记录
- memory/fund-learnings.md - 投资心得
长期投资,理性决策。 🐔