ETF and index-fund holdings
financialdatasets.index-fundsGet an ETF or index fund's holdings and weights, or find funds that hold a US security
- Price
- $0.02/successプロバイダー原価
- Success rate
- —成功率データはまだありません成功率データはまだありません
- Latency p50
- ——
- Last verified
- 2026/09/15Verified working
GEThttps://toolswitch.dev/v1/tools/financialdatasets.index-funds?limit=1&ticker=SPYPreview- Uses platform quota
- Synchronous response
- Reads public data
パラメータ
Supply exactly one of ticker or holding unless continuing with cursor. The response shape depends on the query: ticker returns fund and holdings; holding returns security and funds.
| パラメータ | 型 | 必須 | 説明 | 例 |
|---|---|---|---|---|
| クエリパラメータ | ||||
as_of | 文字列 | 任意 | YYYY-MM-DD; valid only with ticker; returns the fund composition in effect on or before this date | |
limit | 整数 | 任意 | total rows across all pages; default 50; each response page contains up to 10 rows | 1 |
cursor | 文字列 | 任意 | opaque cursor from the response next_page_url; when supplied, omit the original filters because the cursor preserves them | |
offset | 整数 | 任意 | rows to skip; default 0 | |
ticker | 文字列 | 任意 | ETF or index-fund ticker; supply exactly one of ticker or holding. If availability is uncertain, call financialdatasets.index-funds.tickers first | SPY |
holding | 文字列 | 任意 | US security ticker; supply exactly one of ticker or holding to find funds whose latest filing holds the security | |
asset_class | 文字列 | 任意 | equity | bond; valid only with ticker; omit for all holdings | |
- クエリパラメータ
as_of文字列任意YYYY-MM-DD; valid only with ticker; returns the fund composition in effect on or before this date
limit整数任意total rows across all pages; default 50; each response page contains up to 10 rows
例:
1cursor文字列任意opaque cursor from the response next_page_url; when supplied, omit the original filters because the cursor preserves them
offset整数任意rows to skip; default 0
ticker文字列任意ETF or index-fund ticker; supply exactly one of ticker or holding. If availability is uncertain, call financialdatasets.index-funds.tickers first
例:
SPYholding文字列任意US security ticker; supply exactly one of ticker or holding to find funds whose latest filing holds the security
asset_class文字列任意equity | bond; valid only with ticker; omit for all holdings
コード例
$TOOLSWITCH_KEY をコンソールで作成したキーに置き換えてください。
curl -X GET 'https://toolswitch.dev/v1/tools/financialdatasets.index-funds?limit=1&ticker=SPY' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/financialdatasets.index-funds?limit=1&ticker=SPY",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/financialdatasets.index-funds?limit=1&ticker=SPY", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());このゲートウェイ API はプレビュー版です。URL や認証方式は変更される場合があります。 パラメータはサンプルデータです。 呼び出し料金は $0.02/success です。サービス料を含みます。