sectors
Get Index Sectors. Sector weighting of an index.
Parameters
- standard
- tmx
symbol
: str
Symbol to get data for.
• Optional: False
symbol
: str
Symbol to get data for.
• Optional: False
use_cache
: bool
Whether to use a cached request. All Index data comes from a single JSON file that is updated daily. To bypass, set to False. If True, the data will be cached for 1 day.
• Default: True
• Optional: True
Returns
results
: list[IndexSectors]
Serializable results.
provider
: Optional[Literal['tmx']]
Provider name.
warnings
: Optional[list[Warning_]]
list of warnings.
chart
: Optional[Chart]
Chart object.
extra
: dict[str, Any]
Extra info.
Data
- standard
- tmx
sector
: str
The sector name.
weight
: float
The weight of the sector in the index.
sector
: str
The sector name.
weight
: float
The weight of the sector in the index.