Holdings
Get the holdings of every fund: each asset it holds with the number of shares, the market value and the weight in the fund (as a decimal). This shows what the fund is actually exposed to and how concentrated it is; get_concentration and get_overlap summarize the weights.
Tickers that are not an ETF or fund have no holdings and return no data. They are not removed from the Toolkit instance.
Also known as: fund holdings, ETF constituents, fund portfolio.
Holdings in Python or via the MCP
Install the Finance Toolkit with:
pip install financetoolkit -U
Then call get_holdings as shown below.
from financetoolkit import Toolkit
toolkit = Toolkit(
["QQQ", "VTI"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2021-01-01",
end_date="2025-12-31",
)
toolkit.etf.get_holdings().loc["QQQ"].head()
Or, after setting up the Finance Toolkit MCP, ask:
What are the five largest holdings of the Invesco QQQ Trust, with their shares, weight and market value?
Which returns:
| Asset | Name | ISIN | CUSIP | Shares | Weight | Market Value | Updated At |
|---|---|---|---|---|---|---|---|
| NVDA | NVIDIA Corp | US67066G1040 | 67066G104 | 1.81778e+08 | 0.0808 | 3.88388e+10 | 2026-10-31 15:30:02 |
| AAPL | Apple Inc | US0378331005 | 037833100 | 1.10079e+08 | 0.0799 | 3.84077e+10 | 2026-10-31 15:30:02 |
| MSFT | Microsoft Corp | US5949181045 | 594918104 | 5.60069e+07 | 0.0617 | 2.96915e+10 | 2026-10-31 15:30:02 |
| MU | Micron Technology Inc | US5951121038 | 595112103 | 2.35156e+07 | 0.0457 | 2.19699e+10 | 2026-10-31 15:30:02 |
| AMZN | Amazon.com Inc | US0231351067 | 023135106 | 8.13519e+07 | 0.0412 | 1.98328e+10 | 2026-10-31 15:30:02 |
Parameters
get_holdings accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
overwrite | bool | Whether to retrieve the holdings again. Defaults to False. | True |
show_columns | list[str] | None | A list of column names to keep in the result. Invalid names are reported and ignored. Defaults to None, which keeps every column. | None, which keeps every column |
limit | int | None | The number of largest holdings (by weight) to keep per fund, e.g. 10 for the top 10, or of the smallest for a negative number, e.g. -10. Defaults to None, which keeps every holding. The holdings carry no sector or country; get_sector_weightings and get_country_weightings break the fund down by those. | 20 |
rounding | int | None | The number of decimals to round the shares, weights and market values to. Defaults to None, which uses the rounding of the Toolkit. The smallest holdings of a broad fund weigh less than 0.0001, so they need a higher rounding (e.g. 8) to keep a weight above zero. | 2 |