For AI agents: the documentation index is at /llms.txt, and this page is available as Markdown at /api/market-data/get-price-indicators.md.
Get a technical indicator series
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.
asset_id?stringBackend asset ID. Mutually exclusive with symbol: exactly one of
the two is required, and naming both is a 400.
uuidsymbol?stringDeprecatedAsset symbol (e.g. SOL, BTC)
indicator*string"sma""ema""rsi""macd""bollinger""atr""surging_1h""surging_4h""surging_24h""trending_ratio"window?stringTime window for the series (e.g. 1d, 7d, 1M)
"1h"resolution?stringCandle size the period counts in (e.g. 1m, 1h, 1d)
"1m"period?integerLookback in candles. Required for sma, ema and rsi; defaults to 20 for bollinger and 14 for atr, and is not used by macd. Rejected for the momentum measures, which cover a fixed span.
1 <= value <= 400fast_period?integerMACD fast EMA length. Defaults to 12.
1 <= value <= 400slow_period?integerMACD slow EMA length. Defaults to 26; must exceed fast_period.
1 <= value <= 400signal_period?integerMACD signal EMA length. Defaults to 9.
1 <= value <= 400std_dev?numberBollinger band width in standard deviations. Defaults to 2.
0 <= valueasset_class?stringIndicator lines
application/json- response
asset_id?stringBackend asset ID. Absent on the CeFi routes.
uuidsymbol?stringwindow?stringresolution?stringindicator?stringlines?Indicator lines keyed by line name
curl -X GET 'https://api.truemarkets.co/v1/defi/market/prices/indicators?indicator=sma'{ "asset_id": "b4695157-0d1d-4da0-8f9e-5c53149389e4", "symbol": "string", "window": "string", "resolution": "string", "indicator": "string", "lines": { "property1": [ { "t": "2019-08-24T14:15:22Z", "value": "string" } ], "property2": [ { "t": "2019-08-24T14:15:22Z", "value": "string" } ] }}Get price history for multiple symbols GET
Returns price history for multiple symbols in a single request. Each symbol is resolved independently — an unknown or failing symbol returns a per-symbol error in its result entry instead of failing the whole batch, so partial results are still returned.
Get min/max price over a window GET
Returns the minimum and maximum price observed for an asset within a configurable lookback window, along with the timestamps at which each extreme occurred. Useful for surfacing 24h highs/lows or computing period-over-period statistics.