Skip to main content

sectors

Get Index Sectors. Sector weighting of an index.

Examples

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

Parameters

NameTypeDescriptionDefaultOptional
symbolstrSymbol to get data for.False

Returns

OBBject
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

NameTypeDescription
sectorstrThe sector name.
weightfloatThe weight of the sector in the index.