Skip to content

GET /api/v1/etf/pcf

ETF portfolio composition file (PCF).

Returns Portfolio Composition File (PCF) data for ETFs, including creation/redemption basket components.

Request

GET /api/v1/etf/pcf

Headers

HeaderValue
F-API-KEYYour API key

Query Parameters

ParameterTypeRequiredFilterDescription
fund_codestringNoexactFund code
trade_datestringNoexactTrade date (YYYY-MM-DD)
component_codestringNoexactComponent code
source_typestringNoexactSource type
date_fromstringNorangeStart date
date_tostringNorangeEnd date
limitintegerNoMax rows per page (default 100, max 1000)
offsetintegerNoRows to skip (default 0)
sortstringNoSort field (default trade_date)
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/pcf?fund_code=510300&trade_date=2024-01-02"

Response

{
"code": 0,
"message": "ok",
"data": [
{
"fund_code": "510300",
"trade_date": "2024-01-02",
"effective_date": "2024-01-02",
"component_code": "600519",
"component_name": "贵州茅台",
"qty_per_creation_unit": 1200,
"market_value": 1850000,
"weight": 5.23,
"cash_substitution": 0,
"substitution_flag": 1,
"source_url": "https://...",
"source_type": "exchange",
"parsed_at": "2024-01-02T06:00:00Z",
"data_quality": "high",
"updated_at": "2024-01-02T06:00:00Z"
}
],
"meta": {
"total": 300,
"limit": 100,
"offset": 0,
"has_more": true
}
}