Skip to main content

holdings

Get the holdings for an individual ETF.

Examples

from openbb import obb
obb.etf.holdings(symbol='XLK', provider='fmp')
# Including a date (FMP, SEC) will return the holdings as per NPORT-P filings.
obb.etf.holdings(symbol='XLK', date=2022-03-31, provider='fmp')
# The same data can be returned from the SEC directly.
obb.etf.holdings(symbol='XLK', date=2022-03-31, provider='sec')

Parameters

symbol: str

Symbol to get data for. (ETF)

Optional: False


Returns

results: list[EtfHoldings]

Serializable results.


provider: Optional[Literal['fmp', 'intrinio', 'sec', '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. (ETF)

name: str

Name of the ETF holding.