Get coin RSI

Professional This endpoint requires the professional plan or higher

Get the Relative Strength Index (RSI) for a coin throughout time, together with a 14-candle simple average of it. The RSI compares the size of recent gains against recent losses on a 0-100 scale: readings above 70 are often called overbought and below 30 oversold, though in a strong trend a coin can sit there for a long time.

The period is 14 candles, and a candle is one bucket of the interval you request — so interval=day gives the familiar 14-day RSI, while interval=hour gives a 14-hour one.

This uses Wilder's smoothing, the original definition, rather than a plain mean of the last 14 changes. Every value therefore depends on the one before it, and we read a long run of earlier candles before the first one we return so that the series has converged by the time you see it. That is also why the first returned candle already carries both values rather than starting blank.

https://api.coinranking.com/v2/indicators/:uuid/rsi

Path parameters

ParameterDescription
uuid StringUUID of the coin you want to request the RSI for.

Query parameters

Parameter Description
timePeriod (optional) String

The time period for which the RSI data is returned. The number of data points and the default interval are determined by the time period.

Default value: 24h
Allowed values:
1h 3h 12h 24h 7d 30d 3m 1y 3y 5y 10y all

Example:
https://api.coinranking.com/v2/indicators/Qwsogvtv82FCd/rsi?timePeriod=7d
interval (optional) String

The interval determines the granularity of each data point, and therefore what one RSI period means. If not provided, a default interval is used based on the selected timePeriod. Only certain intervals are available per timePeriod — see the table below.


timePeriod Available intervals (default in bold)
1hminute, 5minutes
3hminute, 5minutes, hour
12hminute, 5minutes, hour
24hminute, 5minutes, hour, 8hours
7dhour, 8hours, day
30dhour, 8hours, day, week
3mhour, 8hours, day, week, month
1yday, week, month
3yday, week, month
5yday, week, month
10yday, week, month
allday, week, month

Example:
https://api.coinranking.com/v2/indicators/Qwsogvtv82FCd/rsi?timePeriod=7d&interval=day
referenceCurrencyUuid (optional) String

UUID of coin (either fiat or crypto), in whose terms the price is measured before the RSI is calculated. Defaults to US Dollar, but you can use any coin. You can find UUIDs for reference currencies in any coin endpoint, including a convenient dedicated reference currency endpoint

The RSI itself is a dimensionless 0-100 reading, but it is not independent of this choice: the conversion happens before the calculation, so the RSI of a coin priced in Bitcoin is a genuinely different series from its RSI priced in US Dollars.

Default value: yhjMzLPhuIDl

Example:
https://api.coinranking.com/v2/indicators/Qwsogvtv82FCd/rsi?referenceCurrencyUuid=5k-_VTxqtCEI

Code examples

Response

json
HTTP/1.1 200 OK { "status": "success", "data": [ { "startingAt": 1774936800, "rsi": "63.2148930274", "rsiMa": "61.8402117395" }, { "startingAt": 1774933200, "rsi": "61.9930418822", "rsiMa": "61.5518830471" } ] }

Response fields

PropertyDescription
status String

Status of the request

Allowed values:
success
data Object[]

List of RSI data points, newest first

data.startingAt Number

An Epoch startingAt in seconds marking the start of the time period.

data.rsi String

The 14-period Relative Strength Index, on a 0-100 scale, over the last 14 candles of the requested interval. Above 70 is commonly read as overbought and below 30 as oversold.

data.rsiMa String/null

A 14-candle simple average of rsi — an average of the indicator, not of the price. Crossings between the two are read as momentum shifts. null only for a coin whose history is shorter than the calculation needs.

Error response

json
HTTP/1.1 404 Not Found { "status": "fail", "type": "COIN_NOT_FOUND", "message": "Coin not found" }

Error responses