DEX

Historical DEX OHLCV bars (gzip required)

Requires Accept-Encoding: gzip. OHLCV bars for USD-quoted DEX tokens, aggregated from executed on-chain swaps. Buckets with zero trades are omitted (the series is sparse). Requires the dex_defi market on paid keys. When start predates the earliest indexed bar the API returns 422 with code data_unavailable and an earliest field. v is base-asset volume (e.g. ETH for ETHUSD), not USD value.

get/v1/hist/dex/{symbol}/bars

Request

Path parameters

symbolstring required

Base token plus the USD suffix, e.g. ETHUSD. Case-insensitive.

Query parameters

startstring required

Inclusive lower bound (YYYY-MM-DD or RFC3339). Required.

endstring

Inclusive upper bound. Default now.

interval'1m' | '5m' | '15m' | '30m' | '1h' | '1d' | '1w' | '1mo'

Bar interval. Default 1m. All /v1/hist/* routes accept the same set: intraday (1m–1h), plus 1d (UTC calendar day), 1w (Monday-aligned), and 1mo (calendar month). Coarser bars are aggregated from 1-minute history; a 1d/1w/1mo bar opens at midnight UTC of the period start.

cursorstring

Opaque pagination cursor from a previous response's meta.next_cursor.

limitinteger

Headers

Accept-Encoding'gzip' required

Must include gzip; this endpoint returns 406 otherwise.

Response

OHLCV bars.

Changes

No recorded changes to this operation across all 1 revision of this API.