get_sectors
Identify leading S&P 500 sectors by comparing ETF performance over 1D, 1W, 1M, or YTD. Returns performance and change percentages per sector.
Instructions
S&P 500 sector ETF performance over a window: 1D / 1W / 1M / YTD. Returns one row per sector with performance_pct + change_pct. Use for sector-rotation reads ('which sectors are leading this week?').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| window | No | Lookback window: '1D' / '1W' / '1M' / 'YTD' | 1D |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |