Skip to main content

Sparkline price-ratio time series

POST 

/v1/data/sparklines

Returns price-ratio time series for the cross product of currencies × quotes over a configurable lookback window (default 24h).

Request body: { currencies: string[], quotes: string[], windowHours?: number } where each ID is either a shorthand ("usd", "eth") or "{chainId}-{address}". See the SparklineRequest schema.

Response: { windowHours, count, result }. Each result[i] has { currency, quote, data } where data is an array of { time, value } points and value = price(currency) / price(quote). Pairs with no data are omitted from result (so countcurrencies.length × quotes.length).

Useful for rendering small inline charts (token cards, asset selectors) without hitting the heavier snapshot endpoints.

Request

Responses

Sparkline data