show_benchmark
Compare portfolio returns to benchmark indices (SPY, QQQ) using daily snapshot history for accurate time-series analysis.
Instructions
Compare portfolio return against benchmark indices (default: SPY and QQQ). Uses daily snapshot history when available for accurate time-series comparison; falls back to cost-basis vs current value when no snapshots exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | Start date YYYY-MM-DD (default: earliest snapshot or transaction date) | |
| to | No | End date YYYY-MM-DD (default: today) | |
| benchmarks | No | Tickers to compare against (default: ["SPY", "QQQ"]) |