Skip to main content

constituents

Get Index Constituents.

Examples​

from openbb import obb
obb.index.constituents(symbol='dowjones')
# Providers other than FMP will use the ticker symbol.
obb.index.constituents(symbol='BEP50P')

Parameters​

symbol: str
Symbol to get data for.


Returns​

results: IndexConstituents

Serializable results.

provider: Optional[Literal['cboe', '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
Symbol representing the entity requested in the data.

name: str | None
Name of the constituent company in the index.