Skip to main content

sectors

ETF Sector weighting.

Examples​

from openbb import obb
obb.etf.sectors(symbol='SPY', provider='fmp')

Parameters​

NameTypeDescriptionDefaultOptional
symbolstrSymbol to get data for. (ETF)False
providerLiteral['fmp', 'tmx']The provider to use, by default None. If None, the priority list configured in the settings is used. Default priority: fmp, tmx.NoneTrue

Returns​

OBBject
results : List[EtfSectors]
Serializable results.

provider : Optional[Literal['fmp', 'tmx']]
Provider name.

warnings : Optional[List[Warning_]]
List of warnings.

chart : Optional[Chart]
Chart object.

extra : Dict[str, Any]
Extra info.

Data​

NameTypeDescription
sectorstrSector of exposure.
weightfloatExposure of the ETF to the sector in normalized percentage points.