Fund News Summary Skill
Purpose
Automatically collects and summarizes the latest core news for specified funds across multiple markets.
Supported Markets
- - US Markets: NASDAQ, S&P 500
- Europe: European equity markets
- Japan: Japanese stock market
- Commodities: Gold
- Prediction Markets: Polymarket and prediction market news
Execution
Automatic (Cron Job)
This skill is bound to the DailyFundNews cron job, executing automatically at 11:00 Beijing Time daily.
Manual Trigger
User can ask:
- - "Get today's fund news"
- "Show market updates"
- "What's the latest on my funds?"
- "Run fund news summary"
When triggered, the Agent should:
- 1. Run the script: INLINECODE1
- Read output: The script automatically generates a report and outputs to stdout
- Send to Telegram: Send the script output directly to Telegram
Script Features
- - ✅ Multi-market coverage: US, Europe, Japan, Gold, Polymarket
- ✅ Rate limiting: Maximum 2 concurrent searches, 1.5 second request interval
- ✅ Retry mechanism: Automatic retry on rate limit
- ✅ Error handling: Individual fund failures don't affect others
- ✅ Formatted output: Bold list format
- ✅ Obsidian sync: Saves Chinese version to Obsidian
- ✅ Auto GitHub push: Automatically pushes to GitHub after generation
Fund Configuration
The script has built-in keywords for:
- - 华宝纳斯达克精选股票 (QDII)C
- 摩根欧洲动力策略股票 (QDII)A
- 摩根日本精选股票 (QDI)A
- 易方达黄金 ETF 联接 C
- 标普500 (S&P 500 Index)
- Polymarket / 预测市场
Error Handling
Common Issues
Issue: Script fails with "Rate limit exceeded"
- - Cause: Too many requests to search API
- Solution: Script has built-in retry with exponential backoff. Wait 5 minutes and retry.
Issue: Empty or partial report
- - Cause: Some fund APIs may be temporarily unavailable
- Solution: Check individual fund sources. The script continues even if some funds fail.
Issue: GitHub push fails
- - Cause: Network issue or authentication expired
- Solution: Report success/failure in output. User can manually push if needed.
Output Format
The script outputs a formatted report with:
- - Market name and fund name (bold)
- Key news summary with bullet points
- Last updated timestamp
Data Storage
- - Obsidian save path: INLINECODE2
- Filename format: INLINECODE3
- Language: Chinese (translated from English API results)
- GitHub repo: INLINECODE4
- Branch: INLINECODE5
Manual Execution (Debug)
CODEBLOCK0
基金新闻摘要技能
目的
自动收集并汇总指定基金在多个市场的最新核心新闻。
支持的市场
- - 美国市场:纳斯达克、标普500
- 欧洲:欧洲股票市场
- 日本:日本股票市场
- 大宗商品:黄金
- 预测市场:Polymarket及预测市场新闻
执行方式
自动执行(定时任务)
该技能绑定到DailyFundNews定时任务,每天北京时间11:00自动执行。
手动触发
用户可以询问:
- - 获取今天的基金新闻
- 显示市场动态
- 我的基金有什么最新消息?
- 运行基金新闻摘要
触发时,Agent应:
- 1. 运行脚本:python3 /root/clawd/skills/fund-news-summary/fund_news.py
- 读取输出:脚本自动生成报告并输出到标准输出
- 发送到Telegram:将脚本输出直接发送到Telegram
脚本特性
- - ✅ 多市场覆盖:美国、欧洲、日本、黄金、Polymarket
- ✅ 速率限制:最多2个并发搜索,1.5秒请求间隔
- ✅ 重试机制:遇到速率限制自动重试
- ✅ 错误处理:单个基金失败不影响其他基金
- ✅ 格式化输出:加粗列表格式
- ✅ Obsidian同步:将中文版本保存到Obsidian
- ✅ 自动GitHub推送:生成后自动推送到GitHub
基金配置
脚本内置以下基金关键词:
- - 华宝纳斯达克精选股票 (QDII)C
- 摩根欧洲动力策略股票 (QDII)A
- 摩根日本精选股票 (QDII)A
- 易方达黄金ETF联接C
- 标普500指数
- Polymarket / 预测市场
错误处理
常见问题
问题:脚本因超出速率限制失败
- - 原因:对搜索API的请求过多
- 解决方案:脚本内置了指数退避重试机制。等待5分钟后重试。
问题:报告为空或不完整
- - 原因:某些基金API可能暂时不可用
- 解决方案:检查单个基金来源。即使某些基金失败,脚本仍会继续运行。
问题:GitHub推送失败
- - 原因:网络问题或认证过期
- 解决方案:在输出中报告成功/失败。用户可根据需要手动推送。
输出格式
脚本输出格式化报告,包含:
- - 市场名称和基金名称(加粗)
- 关键新闻摘要(带项目符号)
- 最后更新时间戳
数据存储
- - Obsidian保存路径:/root/clawd/obsidian-vault/reports/fund/YYYY-MM-DD.md
- 文件名格式:YYYY-MM-DD.md
- 语言:中文(从英文API结果翻译)
- GitHub仓库:https://github.com/YonghaoZhao722/yonghao-notes
- 分支:master
手动执行(调试)
bash
cd /root/clawd/skills/fund-news-summary
python3 fund_news.py