Funds & Indexes
What a fund held, who held a stock, and who was in an index, on any date
Funds & Indexes answers three questions for any date since late 2019: what a fund held, which funds held a stock, and which stocks were in an index. Each answer uses only the fund portfolios that were public on that date.
The answers come from Form N-PORT, where ETFs and mutual funds publish their quarter-end portfolios to the SEC. That's why the members above are from the portfolio of 2024-03-31: it's the newest one that was public on 2024-06-28.
What you can ask
- Screen an index as it stood. Add
member_of=sp500to Search, Universe or History, and each row is kept only if the stock was a member on that row's date. Stocks that later left the index, or stopped trading, are still in your backtest. More below. - List an index's members.
/v1/indexes/memberson a date./v1/indexeslists the indexes. - Read a fund's portfolio. Find it with
/v1/funds, then read it with/v1/funds/holdings. To screen only what a fund held, useheld_by=IVVthe same way asmember_of. - See who holds a stock.
/v1/funds/holders: every fund that held it on a date, largest first, and the indexes it was in.
In the MCP server these are get_funds, get_fund_holdings, get_fund_holders, get_indexes and get_index_members.
Cost
Every plan can use these endpoints. date reaches as far back as your plan's history (Plans).
/v1/fundsand/v1/indexes: 1 credit./v1/funds/holdings,/v1/funds/holdersand/v1/indexes/members: 1 credit, plus 1 per 100 rows beyond the first 100. All S&P 500 members cost 6 credits, all Russell 2000 members 21.member_ofandheld_byadd nothing to Search, Universe or History.
How old the data is
Every answer uses only what was public on the date you ask for, so holdings and membership are usually 2 to 5 months old. Funds publish each quarter's portfolio up to 60 days after the quarter ends, and it counts only from that day.
Two dates tell you how old an answer is: report_date is the quarter end the holdings describe, and filed_on is when they became public. portfolio_age_days is the gap between report_date and your date.
A correction counts from the day it was filed. A fund that stops filing drops out after 200 days.
Index membership
An index's members on a date are the stocks held by a fund that fully replicates the index, in the fund's portfolio public on that date. A stock added to the index appears once the fund's next portfolio is public, and a removed stock stays until then.
| Index id | Index | Read from |
|---|---|---|
sp500 | S&P 500 | IVV, iShares Core S&P 500 ETF |
sp400 | S&P MidCap 400 | IJH, iShares Core S&P Mid-Cap ETF |
sp600 | S&P SmallCap 600 | IJR, iShares Core S&P Small-Cap ETF |
sp100 | S&P 100 | OEF, iShares S&P 100 ETF |
nasdaq100 | Nasdaq-100 | AVIP Nasdaq-100 Index Portfolio (an insurance fund with no ticker) until QQQM's first filing on 2021-01-28, then Invesco QQQM |
russell1000 | Russell 1000 | IWB, iShares Russell 1000 ETF |
russell2000 | Russell 2000 | IWM, iShares Russell 2000 ETF |
/v1/indexes returns this list with each index's usual member count and the dates each source fund covers.
What it can't show
- Before late 2019. N-PORT portfolios start in late 2019, from November for most funds. Before a fund's first one, nothing is served: holdings come back empty with a
note, andmember_ofandheld_bymatch no rows.first_dateon/v1/indexesis each index's first date. - Changes inside a quarter. Funds publish one portfolio per quarter, so a stock bought and sold between quarter ends doesn't show.
- SPY, QQQ, DIA and MDY. Unit investment trusts don't file N-PORT, so they have no holdings here and the Dow 30 isn't tracked. Use a fund with the same exposure, such as IVV for the S&P 500.
- Fund details are current. A fund's name, tickers and net assets are its latest. Holdings, holders and membership are as of the date you ask for.
Screening an index on past dates
member_of and held_by check each row against the portfolio public on that row's own date, so a date range is checked date by date. The parameters are in Search. With either one, the response has a membership object saying what was applied.
To read membership as a field instead, every stock row has index_sp500_member, index_nasdaq100_member, index_russell2000_member and index_member_count (see Schema).
Find funds
Finds funds by name or ticker. With neither, it lists every fund, largest first. Then read one with /v1/funds/holdings?fund=<ticker>.
Parameters
| Parameter | Default | Description |
|---|---|---|
q | — | Words of the fund's name, in any order and case: core s&p 500. Every word must be in the name. Up to 8 words |
ticker | — | A fund ticker (IVV, VFIAX) or SEC series id (S000004310) |
etf_only | false | true: only ETFs we cover |
limit | 20 | Results per page, up to 100 |
offset | 0 | For paging |
Response fields
| Field | Type | Description |
|---|---|---|
funds | array | The funds found, each with the fields below |
fund_id | string | SEC series id. Works anywhere a fund is asked for |
name, tickers | string, array | Fund name and its share-class tickers |
is_etf | boolean | Whether it's an ETF |
registrant | string | null | The trust that files for the fund |
first_filed_on | string | When its first portfolio became public. Holdings start here |
last_report_date, last_filed_on | string | Its newest portfolio's quarter end, and when it became public |
filings | integer | null | Portfolios on file, corrections included |
net_assets_usd | integer | null | Net assets in the newest portfolio |
note | string | Only when a ticker finds nothing: why, and what to use instead |
has_more, row_count | boolean, integer | Whether there's another page; funds on this page |
filters, limit, offset | Your request, as applied |
Fund holdings
A fund's portfolio as public on one date, largest first: every line as filed, including bonds, cash funds and derivatives.
ticker is the symbol on the date you asked for, and former symbols work (FB is Meta before its rename). A line we can't match to a stock or ETF we cover has ticker: null: foreign listings, bonds, cash funds, private funds, derivatives.
Parameters
| Parameter | Default | Description |
|---|---|---|
fund | — | Required. A fund ticker (IVV, VFIAX) or SEC series id (S000004310) |
date | today | YYYY-MM-DD |
limit | 500 | Lines per page, up to 5000 |
offset | 0 | For paging |
Response fields
fund is the fund as in /v1/funds. When no portfolio of the fund is public on date, filing is null, holdings is empty, and note says why.
| Field | Type | Description |
|---|---|---|
filing.report_date | string | The quarter end the holdings describe |
filing.filed_on | string | When the portfolio became public |
filing.portfolio_age_days | integer | Days from report_date to date |
filing.accession, form, sec_url | string | The SEC filing: its number, form (NPORT-P, or NPORT-P/A for a correction) and link |
filing.net_assets_usd, total_lines | integer | Net assets, and how many lines the portfolio has |
holdings[].ticker | string | null | The symbol on date. null when it isn't a stock or ETF we cover |
holdings[].issuer_name, title | string | Issuer and security, as filed |
holdings[].cusip, isin | string | null | Identifiers, as filed |
holdings[].balance, unit | number, string | How much: shares (NS), principal (PA) or contracts (NC) |
holdings[].value_usd | number | null | Value in US dollars on report_date |
holdings[].weight_pct | number | null | Percent of the fund's net assets. Negative for a short position |
holdings[].payoff_profile | string | null | Long, Short or N/A |
holdings[].asset_category, asset_category_other | string | null | What kind of holding: EC (common stock), DBT (debt), STIV (short-term investment vehicle) and others. Free text when it's OTHER |
holdings[].issuer_category, country, currency | string | null | Issuer type (CORP, UST, …), its country, and the position's currency |
holdings[].is_restricted, fair_value_level | boolean, string | Restricted security; fair-value level 1, 2 or 3 |
holdings[].derivative_category | string | null | For derivatives: FUT, OPT, SWP, FWD and others |
has_more, row_count | boolean, integer | Whether there's another page; lines on this page |
Fund holders
The funds that held a stock on one date, largest positions first, and the indexes it was in. A fund counts when its portfolio on that date holds the stock long. Each fund's numbers are from its own report_date, so funds on the same page can be from different quarters.
Parameters
| Parameter | Default | Description |
|---|---|---|
ticker | — | Required. A stock or ETF. Former symbols work |
date | today | YYYY-MM-DD |
etf_only | false | true: only ETFs we cover |
limit | 100 | Funds per page, up to 1000 |
offset | 0 | For paging |
Response fields
| Field | Type | Description |
|---|---|---|
index_memberships | array | The indexes the stock was in on date, each with the report_date and filed_on of the portfolio behind it |
fund_count, fund_shares | integer, number | All holders and their total shares, across every page |
funds[].fund_id, name, tickers, is_etf | The fund, as in /v1/funds | |
funds[].shares, value_usd, weight_pct | number | The position on the fund's report_date. weight_pct is its percent of the fund |
funds[].report_date, filed_on | string | The fund's portfolio quarter end, and when it became public |
has_more, row_count | boolean, integer | Whether there's another page; funds on this page |
Indexes
The indexes you can ask for, each with the fund it's read from. No parameters.
| Field | Type | Description |
|---|---|---|
index, name | string | The id to use in index= and member_of=, and the index's name |
expected_members | string | null | The index's usual member count, to check against |
members_today | integer | Members today |
first_date | string | null | The first date with members |
latest_report_date, latest_filed_on | string | null | The portfolio behind today's members |
sources | array | The funds it's read from: fund_ticker, fund_id, and from / until (null means open-ended) |
note | string | null | Anything about its sources |
as_of, method, stale_after_days | Today's date, how membership is read, and the age (200 days) after which a portfolio isn't used |
Index members
An index's members on one date, heaviest first, all in one response. The example is at the top of this page.
Parameters
| Parameter | Default | Description |
|---|---|---|
index | — | Required. An id from /v1/indexes, such as sp500 |
date | today | YYYY-MM-DD |
Response fields
| Field | Type | Description |
|---|---|---|
source | object | null | The portfolio used: fund_id, accession, report_date, filed_on, portfolio_age_days. null, with a note, when none was public on date |
member_count | integer | How many members |
members[].ticker, name | string | null | The symbol on date, and the company |
members[].weight_pct | number | Percent of the source fund |
Errors
| Status | error.type | Cause | What to do |
|---|---|---|---|
400 | invalid_parameter | A missing fund, ticker or index, a malformed one, a bad date, or an unknown parameter. | Read the message and fix that parameter. |
403 | tier_restricted | date is before your plan's history. | Use a later date, or see Plans. |
404 | not_found | Holdings: the fund doesn't file N-PORT, such as SPY. Members: the index isn't tracked. | For a fund, the message names one to use instead; or search with /v1/funds. For an index, the message lists the ids. |
404 | ticker_not_found | Holders: we don't know the ticker. | Check the symbol, or find it with Search. |
Errors aren't charged. Authentication and rate-limit errors are on Authentication and Errors & Caching.