GnistAI GnistAI
Log in

ETF Data

ETF and mutual fund portfolio data — top holdings, asset allocation, and country exposure from SEC N-PORT filings.

Overview   |   MCP Docs   |   API Docs   |   OpenAPI   |   Playground   |   Tutorial   |   Toolkits   |   Home
status: healthy status status healthy healthy tools: 3 tools tools 3 3 Finance

Data source: SEC EDGAR (N-PORT-P)

MCP MCP Protocol

Endpoint https://context.gnist.ai/mcp/etf/
claude_desktop_config.json
{
  "mcpServers": {
    "gnist-etf": {
      "url": "https://context.gnist.ai/mcp/etf/",
      "headers": {
        "Gnist-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
Shell
curl -X POST "https://context.gnist.ai/mcp/etf/" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Gnist-API-Key: YOUR_API_KEY" \
  -d '{"jsonrpc": "2.0", "method": "tools/call", "id": 1, "params": {"name": "get_etf_holdings", "arguments": {"ticker_or_cik": "example"}}}'

API REST API

API Root https://context.gnist.ai/rest/etf/

3 endpoints available:

Shell
curl "https://context.gnist.ai/rest/etf/get_etf_holdings?ticker_or_cik=example" \
  -H "Gnist-API-Key: YOUR_API_KEY"
Python
import httpx

resp = httpx.get(
    "https://context.gnist.ai/rest/etf/get_etf_holdings",
    headers={"Gnist-API-Key": "YOUR_API_KEY"},
    params={
        "ticker_or_cik": "example"
},
)
print(resp.json())

OpenAPI Spec  ·  Full API Docs

CLI Command Line

Command gc etf

CLI documentation will be available when the GnistAI SDK is published.

Install
pip install gnistai

Available Tools (3)

get_etf_holdings
Get top portfolio holdings for an ETF or mutual fund.
ParameterTypeRequiredDescription
ticker_or_cikstringrequiredETF or mutual fund ticker (e.g. "SPY", "QQQ", "VTI") or numeric CIK.
limitintegeroptionalMaximum holdings to return, sorted by market value (default 25). (default: 25)
get_etf_allocation
Get asset allocation breakdown for an ETF or mutual fund.
ParameterTypeRequiredDescription
ticker_or_cikstringrequiredETF or mutual fund ticker (e.g. "SPY", "QQQ", "BND") or numeric CIK.
report_feedback
Report a bug, feature request, or general feedback for this data source.
ParameterTypeRequiredDescription
feedbackstringrequired
feedback_typestringoptional (default: "general")

Related