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
- standard
- nasdaq
symbol: str
Symbol to get data for. (ETF)
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
- standard
- nasdaq
symbol: str | None
Symbol representing the entity requested in the data.
name: str | None
Name of the asset.
symbol: str | None
The symbol of the holding.
name: str | None
Name of the asset.
weight: float | None
The position's weight in the fund, as a normalized percent.