Skip to main content
Version: v5

holdings

Get the top ten holdings of an ETF or mutual fund, with weights.

Examples​

from openbb import obb
# The fund's ten largest positions.
obb.nasdaq.etf.holdings(symbol='QQQ', provider='nasdaq')
# Mutual funds are served from the fund profile.
obb.nasdaq.etf.holdings(symbol='PRGFX', provider='nasdaq')

Parameters​

symbol: str
Symbol to get data for. (ETF)


Returns​

results: NasdaqEtfHoldings

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 | None
Symbol representing the entity requested in the data.

name: str | None
Name of the asset.