Skip to content

GET /api/v1/etf/holdings

ETF constituent holdings.

Returns constituent stock holdings and weights for ETFs.

Request

GET /api/v1/etf/holdings

Headers

HeaderValue
F-API-KEYYour API key

Query Parameters

ParameterTypeRequiredFilterDescription
codestringNoexactFund code
report_periodstringNoexactReport period
holding_codestringNoexactHolding stock code
sourcestringNoexactData source
limitintegerNoMax rows per page (default 100, max 1000)
offsetintegerNoRows to skip (default 0)
sortstringNoSort field (default report_period)
orderasc | descNoSort direction (default desc)

Example

Terminal window
curl -H "F-API-KEY: fk-xxxxx" \
"https://finance-api.xp-java.workers.dev/api/v1/etf/holdings?code=510300&report_period=2024Q3"

Response

{
"code": 0,
"message": "ok",
"data": [
{
"code": "510300",
"report_period": "2024Q3",
"holding_code": "600519",
"holding_name": "贵州茅台",
"weight": 5.23,
"source": "exchange",
"updated_at": "2024-10-15T00:00:00Z"
}
],
"meta": {
"total": 300,
"limit": 100,
"offset": 0,
"has_more": true
}
}