Skip to main content
Version: v5

sectors

Sector weights of an index.

Examples​

from openbb import obb
# Index sector weights.
obb.tmx.index.sectors(symbol='^TSX', provider='tmx')

Parameters​

symbol: str
Symbol to get data for.


Returns​

results: TmxIndexSectors

Serializable results.

provider: str | None

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.