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).

GET/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>"
Parameters
ParameterDescription
interval

query · string · optional

Candle width: 1m, 1h or 1d. Defaults to one day.1m1h1d
limit

query · 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.
symbol

path · 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.

Response fields of One ETF's share price candles with shares traded
FieldTypeDescription
tickerstringThe fund's ticker, upper-cased.
intervalstringThe candle width.
candlesobject[]Oldest first.
candles[].atintegerThe candle's open, unix seconds.
candles[].opennumber | nullShare price at the open, US dollars. null when not stated.
candles[].highnumber | nullHighest share price in the candle, US dollars. null when not stated.
candles[].lownumber | nullLowest share price in the candle, US dollars. null when not stated.
candles[].closenumber | nullShare price at the close — for a candle in progress, the latest — US dollars. null when not stated.
candles[].volumeSharesnumber | nullShares 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