Analyze a portfolio
analyze_portfolioAnalyze a portfolio of 2-30 US stocks or ETFs to reveal redundant positions, risk concentration, and true diversifiers. Returns volatility, beta, drawdown vs SPY, and ETF overlap warnings.
Instructions
Whole-portfolio risk and diversification analysis for 2 to 30 US stocks or ETFs: which positions are redundant, where the risk concentrates (Euler risk contributions), what actually diversifies, portfolio volatility, beta and market R2, diversification ratio, effective number of independent bets, correlation blocks that move together, max drawdown of the mix vs SPY, and issuer-sourced holdings-overlap warnings between the ETFs held. Use compare_pair for just two assets. Covers ~4,700 US-listed stocks and ETFs only (no crypto, no foreign listings, no inverse/leveraged short funds, no intraday data); figures use weekly closes and refresh once per trading day. Unknown tickers return an error: resolve them with resolve_symbol first.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| detail | No | auto (default) includes the correlation matrix up to 12 positions; compact never includes it | |
| positions | Yes | The holdings. Example: [{symbol:'AAPL',weight:40},{symbol:'MSFT',weight:30},{symbol:'SCHD',weight:30}] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | Yes | ||
| flags | Yes | ||
| notes | Yes | ||
| terms | No | ||
| clusters | Yes | ||
| drawdown | Yes | ||
| portfolio | Yes | ||
| positions | Yes | ||
| redundant_pairs | Yes | ||
| correlation_matrix | No | ||
| etf_overlap_warnings | Yes |