Skip to main content

sectors

Get Index Sectors. Sector weighting of an index.

Examples​

from openbb import obb
obb.index.sectors(symbol='^TX60')

Parameters​

symbol: str
Symbol to get data for.


Returns​

results: 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​

sector: str
The sector name.

weight: float
The weight of the sector in the index.