ETFs API
One ETF's share price candles with shares traded
OHLC share price candles with shares traded for one crypto ETF such as IBIT or ETHA, per minute (last three sessions), hour (about a week) or day (whole history).
/api/external/etf/etf-ohlcv/{symbol}What it returns
One US crypto exchange-traded fund's share price candles — open, high, low and close in US dollars, with the number of shares traded in each — oldest first, the newest limit. 1m covers the last three sessions minute by minute, extended hours included; 1h about the last week hour by hour; 1d the fund's whole trading life day by day, each daily candle opening at midnight New York time. The newest candle can still be in progress. Share prices only: net asset value and premium are in etf-history. Not scoped to any chain. A ticker no tracked fund has answers 404.
Chains
This endpoint is not tied to a chain: it takes no chain in its request.
Request
Send your key in the x-dex-data-key header. Replace each <placeholder> with a real value.
curl -H "x-dex-data-key: $DEXDATA_API_KEY" \ "https://api.dexdata.io/api/external/etf/etf-ohlcv/<symbol>"
| Parameter | Description |
|---|---|
intervalquery · string · optional | Candle width: 1m, 1h or 1d. Defaults to one day.1m1h1d |
limitquery · integer · optional | How many of the most recent candles to return, 1 to 3000. Defaults to 100. Fewer come back when the series is shorter. limit ≤ 300 keeps the answer under 32 KB. |
symbolpath · string · required | The fund's exchange ticker, e.g. "IBIT", "FBTC" or "ETHA" — as etfs lists them. Case-insensitive. Not the coin ticker the fund holds. |
Response fields
A JSON response. Every field is always present; null means the value could not be established, never zero.
| Field | Type | Description |
|---|---|---|
ticker | string | The fund's ticker, upper-cased. |
interval | string | The candle width. |
candles | object[] | Oldest first. |
candles[].at | integer | The candle's open, unix seconds. |
candles[].open | number | null | Share price at the open, US dollars. null when not stated. |
candles[].high | number | null | Highest share price in the candle, US dollars. null when not stated. |
candles[].low | number | null | Lowest share price in the candle, US dollars. null when not stated. |
candles[].close | number | null | Share price at the close — for a candle in progress, the latest — US dollars. null when not stated. |
candles[].volumeShares | number | null | Shares traded in the candle (a count of shares, not dollars). null when not stated. |
Start building with DexData today
Sign in, create a key and make your first call in a minute. Free credits every month, and you only pay for calls that succeed.
Get a free API key