Skip to main content

Get a technical indicator series

GET 

/v1/defi/market/prices/indicators

Returns one or more technical indicator lines computed from the asset's close prices.

The requested window is widened internally by the indicator's warm-up depth and trimmed back before responding, so the first returned point is already converged rather than carrying seed bias. The window is measured back from the most recent available point, so a feed lagging behind the current time still returns a full window.

lines is keyed by line name. Single-line indicators (sma, ema, rsi, atr) return one entry named after the indicator. macd returns macd, signal and histogram; bollinger returns upper, middle, lower and percent_b.

atr reads OHLC candles rather than closes, so it is only available for assets whose price source stores individual ticks; anything else returns 400. It is Wilder-smoothed and defaults to a period of 14.

The momentum measures cover fixed spans rather than a caller-supplied period, which is rejected for them. surging_1h, surging_4h and surging_24h are the percent price change over that span, so the resolution must be coarse enough for the span to fit in 400 buckets — the same bound a supplied period carries. trending_ratio is average reported 24h volume over the last 6 hours divided by its 30-day average, so it needs a CoinGecko-mapped asset and a resolution of at least 1h.

VWAP is not offered: it needs per-bucket traded volume, which no price series carries.

Request

Responses

Indicator lines