compare_portfolios
Compare multiple investment portfolios side by side to analyze performance metrics and identify top performers across key indicators.
Instructions
Compare multiple portfolios side by side.
Retrieves metrics for multiple portfolios and ranks them by key performance indicators.
Args: names: List of portfolio names to compare.
Returns: Dictionary containing: - portfolios: Dict of metrics per portfolio - rankings: Rankings by each metric - best_by_metric: Best portfolio for each metric
Example:
result = compare_portfolios(
names=["stocks", "crypto", "metals"]
)
print(f"Best Sharpe: {result['best_by_metric']['sharpe_ratio']}")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| names | Yes |