Skip to main content
Version: v5

constituents

Constituents of an index, with weights and key data.

Examples​

from openbb import obb
# Index constituents and weights.
obb.tmx.index.constituents(symbol='^TSX', provider='tmx')

Parameters​

symbol: str
Symbol to get data for.


Returns​

results: TmxIndexConstituents

Serializable results.

provider: str | None

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.