Pair RSI

Get the RSI (Relative Strength Index) history of a futures trading pair on an exchange, with values from 0 to 100; the calculation period and the price used can be customized. Useful for identifying overbought and oversold conditions, or for building RSI alerts and backtests.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Available on these API plans: Startup Standard Professional Enterprise

Update frequencyReal-time

Response Data

data is an array; each element is the RSI of one interval, and time is the start time of the interval. RSI is calculated from the trading pair's price candles using Wilder's method, with values 0–100.

📘

Fewer records are returned than the candles used in the calculation

Calculating RSI requires a stretch of candles to accumulate first: the first window candles are used only to start the calculation and are not returned. With the default window=9, requesting 60 1-hour candles returns 51 records, and the first record corresponds to the 10th candle. If you need N results, add the number of candles needed to start the calculation to limit, or move start_time earlier by the corresponding number of intervals. If there are too few candles to start the calculation, the response contains no data.

📘

The default period is 9, not 14

If window is omitted, RSI is calculated over 9 periods. Many charting tools show RSI(14) by default; to compare with them, pass window=14.

200 · application/json · See the response example in the right panel.

FieldTypeAlways ReturnedDescription
codestringYesBusiness status code; "0" means success
msgstringNoResult message; may be omitted on success
dataarray of objectNoArray of RSI values; each element is one interval. This field is not returned when there are not enough candles to start the calculation (the response contains only code)
data[].timeinteger (int64)YesInterval start time, timestamp in milliseconds (UTC); the indicator value is calculated from candles up to and including this interval
data[].rsi_valuenumberYesRSI value, 0–100; calculated using Wilder's method

API Plans

Only the API plans marked Yes in the table below can call this endpoint. For the price of each plan, see API Plans.

API PlanAccess
Hobbyist❌ No
Startup✅ Yes
Standard✅ Yes
Professional✅ Yes
Enterprise✅ Yes

The length of history you can query differs by API plan; if start_time is earlier than the range you can query, it is automatically changed to the earliest time available. For how far back each interval's history can be queried, see Intervals.

Use This Endpoint with AI

Pick a task and click Open in ChatGPT or Open in Claude: the AI reads this page first and then gives you the result. You can also click Copy and paste the full prompt into the AI tool you use.

Build overbought/oversold alerts
Have AI write a script that alerts you when RSI(14) is above 70 or below 30.
Compare RSI across intervals
Have AI write code that checks the 1-hour, 4-hour and daily RSI at the same time.
Understand this endpoint
Have AI explain RSI and the parameters in plain language.

This endpoint provides data through the REST API. Use the prompts above to have AI write the request code. For the tools available through MCP, see CoinGlass MCP.

Use Cases

ScenarioDescription
Identify Overbought and Oversold ConditionsAn RSI above 70 is often regarded as overbought and below 30 as oversold; this can serve as a reference for short-term decisions.
Spot DivergencesIf the price makes a new high but RSI does not, upward momentum may be weakening; if the price makes a new low while RSI rises, downward momentum may be weakening.
Indicator AlertsGet the latest RSI on a schedule and push an alert when it crosses a threshold.
Strategy BacktestingUse RSI history to backtest entry and exit rules on a single trading pair; when you need the current RSI of all coins, use Coin RSI List.

Related Endpoints

EndpointHow It Differs
Coin RSI ListCurrent RSI and price change of all coins across multiple intervals; no parameters needed
Moving Average Convergence Divergence (MACD)Another commonly used trend momentum indicator
TD Sequential IndicatorUses consecutive counts to identify possible reversals
Pair Price OHLC HistoryPrice candles for the same trading pair; can be aligned by time for comparison

FAQ

Is the default window 14?

No, the default is 9. To get the common RSI(14), pass window=14.

Why are fewer records than limit returned, or even no data?

The first window candles are used only to start the calculation and are not returned. With the default window=9, requesting 60 candles returns 51 records. When there are too few candles to start the calculation (for instance, interval=1h with a time range of only 3 hours), the response contains only code and no data field.

Why doesn't it match the RSI on the exchange's chart?

Check each of the following: window (this endpoint defaults to 9, while many charts default to 14), interval, series_type (default close price), and whether the exchange and trading pair are the same. The last record corresponds to an interval that has not yet closed, so its value changes with the price.

Does a wrong series_type value return an error?

No. The endpoint recognizes only the four values open, high, low and close; any other value (including a typo) is calculated as close without an error, so check the spelling carefully.

Learn More: Relative Strength Index (RSI)

What Is RSI?

RSI (Relative Strength Index) compares the average gain with the average loss over a period, giving a result between 0 and 100: the closer to 100, the more recent gains dominate; the closer to 0, the more losses dominate. This endpoint calculates it using Wilder's method.

What Are the Overbought and Oversold Levels for RSI?

70 and 30 are commonly used: above 70 is regarded as overbought and below 30 as oversold. In strong trends, RSI may stay in the overbought or oversold zone for a long time, and some people use 80 and 20 instead. It is only a reference and does not mean the price will necessarily reverse.

How Do I View the RSI of All Coins at Once?

Use Coin RSI List, which returns the current RSI and price change of all coins across multiple intervals from 15 minutes to 1 week in one call.

Query Params
string
required
Defaults to Binance

Exchange name, e.g., Binance, OKX. For the exchanges you can query, see the Supported Exchanges and Pairs endpoint.

string
required
Defaults to BTCUSDT

Trading pair symbol, e.g., BTCUSDT. Exchanges write trading pairs differently; for the pairs you can query, see the Supported Exchanges and Pairs endpoint.

string
required
Defaults to 1d

Candlestick interval; the indicator is calculated from price candles of this interval, e.g., 1d. Options: 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 6h, 8h, 12h, 1d, 1w.

int32
1 to 1000
Defaults to 1000

Number of candles used in the calculation, default 1000, range 1–1000. The number of records returned may be smaller: the first stretch of candles is used only to start the indicator calculation and is not returned; see “Response Data” below. When both start_time and end_time are passed, the number of records returned is not guaranteed to correspond to limit.

int64

Start time, timestamp in milliseconds (UTC), e.g., 1790812800000 (2026-10-01 00:00 UTC). The candles used in the calculation satisfy start_time ≤ time < end_time: the start time is included and the end time is excluded. A start time that is not on an interval boundary is aligned to the next interval; if the start time is earlier than the history your API plan can query, or the range exceeds the maximum span of a single query, the start time is automatically moved later into the allowed range. If only start_time is passed, limit candles are taken forward from the start time. Because the first stretch of candles is needed to start the calculation, the first returned record is later than start_time.

int64

End time, timestamp in milliseconds (UTC), e.g., 1792022400000 (2026-10-15 00:00 UTC). The interval at the end time is not included; an end time later than the current time is treated as the current time. If both start and end times are omitted, limit candles are taken backward with the current time as the end point.

integer
Defaults to 9

Number of periods used to calculate RSI, default 9. For example, the common RSI(14) requires window=14. Pass a positive integer; the endpoint does not validate the range, and passing 0 or a negative number may return empty data or an error.

string
enum
Defaults to close

Price used in the calculation: open for the open price, high for the high price, low for the low price, close for the close price, default close. Other values are calculated as close and do not return an error.

Allowed:
Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json