Skip to content

GET /api/v1/etf/flow

ETF fund flow data.

Returns fund flow data for ETFs including net inflow, volume, and shares change.

Request

GET /api/v1/etf/flow

Headers

HeaderValue
F-API-KEYYour API key

Query Parameters

ParameterTypeRequiredFilterDescription
codestringNoexactFund code
periodstringNoexactPeriod/date
estimation_methodstringNoexactEstimation method
sourcestringNoexactData source
date_fromstringNorangeStart date
date_tostringNorangeEnd date
limitintegerNoMax rows per page (default 100, max 1000)
offsetintegerNoRows to skip (default 0)
sortstringNoSort field (default 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/flow?code=510300&date_from=2024-01-01&date_to=2024-01-31"

Response

{
"code": 0,
"message": "ok",
"data": [
{
"code": "510300",
"period": "2024-01-02",
"net_inflow": 1250000000,
"close": 3.856,
"volume": 5230000,
"shares_change": 325000,
"nav_estimate": 3.861,
"estimation_method": "realtime",
"nav": 3.861,
"source": "exchange",
"updated_at": "2024-01-02T15:30:00Z",
"data_quality": "high",
"note": null
}
],
"meta": {
"total": 22,
"limit": 100,
"offset": 0,
"has_more": false
}
}