Returns dividend history for ETFs including ex-dividend date and dividend per share.
Request
GET /api/v1/etf/dividendHeaders
| Header | Value |
|---|---|
F-API-KEY | Your API key |
Query Parameters
| Parameter | Type | Required | Filter | Description |
|---|---|---|---|---|
code | string | No | exact | Fund code |
ex_date | string | No | exact | Ex-dividend date (YYYY-MM-DD) |
source | string | No | exact | Data source |
date_from | string | No | range | Start date |
date_to | string | No | range | End date |
limit | integer | No | — | Max rows per page (default 100, max 1000) |
offset | integer | No | — | Rows to skip (default 0) |
sort | string | No | — | Sort field (default ex_date) |
order | asc | desc | No | — | Sort direction (default desc) |
Example
curl -H "F-API-KEY: fk-xxxxx" \ "https://finance-api.xp-java.workers.dev/api/v1/etf/dividend?code=510300&date_from=2020-01-01"Response
{ "code": 0, "message": "ok", "data": [ { "code": "510300", "ex_date": "2024-06-15", "dividend_per_share": 0.052, "source": "exchange", "updated_at": "2024-06-10T00:00:00Z" } ], "meta": { "total": 25, "limit": 100, "offset": 0, "has_more": false }}