Skip to content

GET /api/v1/etf/price

Latest ETF price and premium snapshot.

Returns the latest price, NAV, and premium/discount percentage for ETFs.

Request

GET /api/v1/etf/price

Headers

HeaderValue
F-API-KEYYour API key

Query Parameters

ParameterTypeRequiredFilterDescription
codestringNoexactFund code
sourcestringNoexactData source
limitintegerNoMax rows per page (default 100, max 1000)
offsetintegerNoRows to skip (default 0)
sortstringNoSort field (default code)
orderasc | descNoSort direction (default asc)

Example

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

Response

{
"code": 0,
"message": "ok",
"data": [
{
"code": "510300",
"latest_price": 3.856,
"latest_nav": 3.861,
"premium_pct": -0.13,
"source": "exchange",
"updated_at": "2024-12-31T15:30:00Z"
}
],
"meta": {
"total": 1,
"limit": 100,
"offset": 0,
"has_more": false
}
}