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. 9. 15.Verified 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이며 서비스 수수료가 포함되어 있습니다.