Sector View
sector_viewGet sector map with per-sector size and live averages for 13 sectors. Optionally warm the cache for fresh quotes or filter to a single sector.
Instructions
Sector map (13 sectors, static validated classification) with per-sector size and live averages.
warm=False (default): cheap snapshot - averages appear only for quotes ALREADY cached ('warmed': false; no requests made). warm=True: fan out quotes() first (parallel batches of 20, upstream rate-limit safe), then report - averages are live. With sector= 'Name' only that sector is fetched and returned; an unknown name raises with the valid list. requests_made counts the price-cache misses at the start of the warm pass (each miss = one upstream request; fresh cache hits and cached-again symbols cost nothing). Example: sector_view(warm=True, sector="Crypto/Digital Assets")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| warm | No | ||
| sector | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||