通过一个命令行工具完成多链加密货币交易、钱包管理与 AI 市场分析。
文档
Financial Report Automator
试用Automated quarterly financial report generation with dividend-adjusted total return calculations. Use when generating stock performance reports, quarterly ea...
它能做什么
Generates quarterly stock performance reports with **dividend-adjusted total return**.
技能文档
Financial Report Automator
Generates quarterly stock performance reports with dividend-adjusted total return.
What It Does
- Parses CSV price data (Yahoo Finance export format)
- Computes price return (raw close) and total return (adjusted close with dividends)
- Produces structured quarterly reports: start/end price, returns, high/low, avg volume, dividends paid
Key Fix (v1.0.1)
Previous versions used raw close for return calculations, which understated returns for dividend-paying stocks like AAPL. v1.0.1 introduces:
- Column name normalization — handles mixed-case CSV headers (
Date→date) - Adjusted close computation — backward-adjusts prices for dividends so total return reflects reinvested dividends
- Separate price_return vs total_return — both are reported for transparency
- Dividend tracking —
dividendcolumn is optional; defaults to 0 if absent
Usage
As a Python module
from scripts.stock_analyzer import StockAnalyzer
analyzer = StockAnalyzer(data_path="finance/AAPL.csv")
# 30-day total return (dividend-adjusted)
print(analyzer.calculate_returns(30))
# 30-day price return only (no dividends)
print(analyzer.calculate_returns(30, use_adj=False))
# Full quarterly report
report = analyzer.generate_quarterly_report(quarter=2, year=2026)
print(report)
CLI
python3 scripts/stock_analyzer.py
CSV Format Expected
Date,Close,Volume,Open,High,Low
01/02/2026,$269.77,21755774,$272.05,$277.82,$269.11
Optional columns:
dividend— per-share dividend on ex-div dateadj_close— pre-computed adjusted close (overrides internal calculation)
Report Output
{
"quarter": "Q2 2026",
"start_date": "2026-04-01",
"end_date": "2026-06-30",
"start_price": 223.0,
"end_price": 235.5,
"price_return_pct": 5.61,
"total_return_pct": 6.12,
"dividends_per_share": 0.25,
"highest_price": 240.0,
"lowest_price": 218.5,
"average_volume": 35000000
}
Requirements
- Python 3.10+
- pandas
相关技能
把自然语言描述转为结构化 JSON,并由 mcp-diagram-generator MCP 服务生成 Draw.io、Mermaid 或 Excalidraw 图表文件。
诊断生产力系统反复失效的根因,给出最小干预——容量测算、瓶颈定位、可靠的本地记录。
在本地磁盘以分类纯 Markdown 文件保存需要长期留存的事实,与智能体内置记忆并存。
通过一次 REST API 调用,向 10 个社交平台发布视频、图片、文字与文档。
通过托管 OAuth 访问 Microsoft Graph Excel 接口,读写 OneDrive 中的工作簿、工作表、区域、表格与图表。
terrycarter1985 的更多技能
浏览全部技能为中国小学三到六年级英语书面作业打分,并给出符合年龄的鼓励式反馈。
Analyze stocks and cryptocurrencies using Yahoo Finance data. Supports portfolio management (create, add, remove assets), crypto analysis (Top 20 by market c...
Control whole-house music scenes combining Spotify playback with Airfoil speaker routing. Quick presets for morning, party, chill modes.
Generate reusable, policy-aligned customer service replies for e-commerce aftersales scenarios. Use when support staff need fast, compliant Chinese responses...
Control whole-house music scenes combining Spotify playback with Airfoil speaker routing. Quick presets for morning, party, chill modes.
Comprehensive developer cheatsheets and quick references for Git, Docker, Kubernetes, jq, curl, and common Linux commands. Use when needing quick lookups for...