Skip to main content

sectors

Index Sectors. Sector weighting of an index.

Example​

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

Parameters​

NameTypeDescriptionDefaultOptional
symbolstrSymbol to get data for.False
providerLiteral['tmx']The provider to use for the query, by default None. If None, the provider specified in defaults is selected or 'tmx' if there is no default.tmxTrue

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.