TradingAgents/cli
0x7d0 07d0bcccb9 feat: Add comprehensive portfolio analysis system
Add multi-stock portfolio analysis capabilities:
- Parallel analysis of multiple positions using existing trading agents
- Portfolio-level metrics: correlation, beta, volatility, Sharpe ratio, diversification
- Risk assessment: concentration risk, sector exposure, correlation analysis
- Rebalancing recommendations based on AI analysis
- Comprehensive PDF reports with visualizations:
  * Allocation pie chart
  * Correlation heatmap
  * Sector distribution
  * Position performance charts
- Interactive CLI for portfolio input
- Programmatic API for custom integration
- Full backward compatibility with single-stock analysis

New modules:
- tradingagents/portfolio/: Core portfolio models, metrics, and graph
- cli/portfolio_cli.py: Interactive portfolio analysis interface
- cli/portfolio_pdf_generator.py: Portfolio-specific PDF generation
- PORTFOLIO_ANALYSIS.md: Comprehensive documentation

New command: python -m cli.main analyze-portfolio

Dependencies added: seaborn for correlation heatmaps

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-10 11:58:31 +02:00
..
static chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
__init__.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
chart_generator.py feat: Add PDF report generation with charts for trading analysis 2025-10-09 18:46:37 +02:00
main.py feat: Add comprehensive portfolio analysis system 2025-10-10 11:58:31 +02:00
models.py chore(release): v0.1.0 – initial public release of TradingAgents 2025-06-05 04:27:57 -07:00
pdf_generator.py feat: Add PDF report generation with charts for trading analysis 2025-10-09 18:46:37 +02:00
portfolio_cli.py feat: Add comprehensive portfolio analysis system 2025-10-10 11:58:31 +02:00
portfolio_pdf_generator.py feat: Add comprehensive portfolio analysis system 2025-10-10 11:58:31 +02:00
utils.py Local Ollama (#53) 2025-06-26 00:27:01 -04:00