Skip to main content

constituents

Get Index Constituents.

Examples

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

Parameters

NameTypeDescriptionDefaultOptional
symbolstrSymbol to get data for.False

Returns

OBBject
results : List[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

NameTypeDescription
symbolstrSymbol representing the entity requested in the data.
namestrName of the constituent company in the index.