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

NameTypeDescriptionDefaultOptional
symbolstrSymbol to get data for. (ETF)False

Returns

OBBject
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

NameTypeDescription
symbolstrSymbol representing the entity requested in the data. (ETF)
namestrName of the ETF holding.