Skip to main content
Version: v4

sectors

ETF Sector weighting.

Examples​

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

Parameters​

symbol: str | list[str]
Symbol to get data for. (ETF) Multiple items allowed for provider(s): fmp, tmx.


Returns​

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

symbol: str | None
Symbol representing the entity requested in the data.

sector: str
Sector of exposure.

weight: float
Sector exposure for the ETF as a percent of total assets.