show_benchmark
Compare portfolio return against benchmark indices like SPY and QQQ, using daily snapshot history or cost-basis data.
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"]) |