fundlens

v0.1.1
io.github.mguay22/fundlens Checked 1 day ago Published 3 months ago

SEC fund holdings for AI agents: who holds X, what changed, returns, flows, and fund overlap.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_funds

List mutual funds and ETFs covered by FundLens, largest first. Use to discover tickers before calling other tools.

ParameterTypeDescription
limitinteger
offsetinteger

get_fund

Fund profile: identity, AUM, latest snapshot date, plus share classes and service providers (adviser, custodian, auditor) from Form N-CEN.

ParameterTypeDescription
ticker *stringFund or share-class ticker.

get_holdings

Portfolio holdings for a fund at a point in time, largest position first. Values are US dollars; weightPercent is percent of portfolio.

ParameterTypeDescription
ticker *string
as_ofstringPoint-in-time date (YYYY-MM-DD). Returns the latest snapshot on or before this date. Omit for the most recent.
available_as_ofstringLookahead guard (YYYY-MM-DD): only consider filings actually published by this date. Use for backtests.
limitinteger
offsetinteger

get_holdings_history

Every portfolio snapshot available for a fund, newest first. Use to find valid as_of dates before querying holdings.

ParameterTypeDescription
ticker *string

get_exposures

Aggregated sector, industry, security-type and country exposure for a fund, computed from its holdings.

ParameterTypeDescription
ticker *string
as_ofstringPoint-in-time date (YYYY-MM-DD). Returns the latest snapshot on or before this date. Omit for the most recent.
available_as_ofstringLookahead guard (YYYY-MM-DD): only consider filings actually published by this date. Use for backtests.

who_holds

Reverse ownership: which funds AND institutional 13F managers hold a given security. Accepts a CUSIP, ISIN, FIGI, or ticker. entityType distinguishes fund from manager.

ParameterTypeDescription
identifier *stringSecurity CUSIP, ISIN, FIGI, or ticker (e.g. AAPL).
as_ofstringPoint-in-time date (YYYY-MM-DD). Returns the latest snapshot on or before this date. Omit for the most recent.
available_as_ofstringLookahead guard (YYYY-MM-DD): only consider filings actually published by this date. Use for backtests.
limitinteger
offsetinteger

diff_holdings

What a fund bought, sold, added to, and trimmed between two snapshots. Defaults to the latest snapshot versus the one before it.

ParameterTypeDescription
ticker *string
fromstringBaseline snapshot date (YYYY-MM-DD).
tostringComparison snapshot date (YYYY-MM-DD).

fund_overlap

Portfolio overlap between two funds: the percentage invested in the same positions, plus the largest shared holdings. A fund against itself is 100.

ParameterTypeDescription
other *string
ticker *string
as_ofstringPoint-in-time date (YYYY-MM-DD). Returns the latest snapshot on or before this date. Omit for the most recent.
available_as_ofstringLookahead guard (YYYY-MM-DD): only consider filings actually published by this date. Use for backtests.

get_returns

Monthly total returns per share class from N-PORT Part B, oldest first. Percentages as filed.

ParameterTypeDescription
ticker *string
sincestring
untilstring

get_flows

Monthly fund flows from N-PORT Part B: sales, reinvestments, redemptions and net flow, in US dollars. Redemptions are positive outflow magnitudes; netFlowUsd already accounts for the sign.

ParameterTypeDescription
ticker *string
sincestring
untilstring

list_managers

List institutional investment managers that file Form 13F-HR (hedge funds, RIAs). Use to find a CIK before requesting their holdings.

ParameterTypeDescription
limitinteger
offsetinteger

get_manager_holdings

An institutional manager's reported 13F positions at a point in time. weightPercent is a share of their REPORTED 13F portfolio (US-listed equities and options), not total AUM.

ParameterTypeDescription
cik *stringManager CIK, e.g. 1067983.
as_ofstringPoint-in-time date (YYYY-MM-DD). Returns the latest snapshot on or before this date. Omit for the most recent.
available_as_ofstringLookahead guard (YYYY-MM-DD): only consider filings actually published by this date. Use for backtests.
limitinteger
offsetinteger