Indicators›Divergence›RSI Divergence
GET/indicator/rsidivergence

RSI Divergence

Category: Divergence · Updated November 2026


The TAAPI.IO RSI Divergence API returns bull, hidden bull, bear, hidden bear values for the RSI Divergence indicator as JSON, for crypto pairs and US stocks. Send an exchange, symbol and timeframe to get real-time or historical data, with no candles to download and no calculations to maintain.

SpecValue
EndpointGET https://v2.taapi.io/indicator/rsidivergence
Outputsbull, hiddenBull, bear, hiddenBear, rsi
MarketsBinance, Binance Futures, Bybit, Gate.io, Kraken and US stocks
Timeframes1m to 1w
DeliveryREST, bulk and WebSocket

Get RSI Divergence with one API call

This request returns RSI Divergence for BTCUSDT on 1-hour Binance candles. Add your API key to run it here.

curl -G https://v2.taapi.io/indicator/rsidivergence \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "exchange=binance" \
  --data-urlencode "symbol=BTCUSDT" \
  --data-urlencode "timeframe=1h"

RSI Divergence API response

This response came from the live API on 9 November 2026. Long lists are shortened here.

200 OK
{
  "bull": [{"i": 70, "pivotIndex": 75, "prevPivotIndex": 91, "rsi": 29.007836413081264, "rsiPrev": 19.477523455576588, "price": 75304.11, "pricePrev": 75568, "label": "Bull"}],
  "hiddenBull": [{"i": 456, "pivotIndex": 461, "prevPivotIndex": 472, "rsi": 52.93337542431902, "rsiPrev": 56.28989737100583, "price": 82635.32, "pricePrev": 82465.26, "label": "H Bull"}],
  "bear": [{"i": 274, "pivotIndex": 279, "prevPivotIndex": 289, "rsi": 64.8803718324755, "rsiPrev": 69.74039941980062, "price": 81621.17, "pricePrev": 81558.01, "label": "Bear"}],
  "hiddenBear": [{"i": 14, "pivotIndex": 19, "prevPivotIndex": 50, "rsi": 58.5823779043025, "rsiPrev": 51.81825793162302, "price": 76095.32, "pricePrev": 76195, "label": "H Bear"}],
  "rsi": [0, 100],
  "timestamp": [1787022000, 1787025600]
}
FieldTypeDescription
bullobject[]Bull
hiddenBullobject[]Hidden bull
bearobject[]Bear
hiddenBearobject[]Hidden bear
rsinumber[]Rsi
timestampinteger[]Unix time of each candle, in seconds

RSI Divergence API parameters

NameTypeRequiredDefaultDescription
exchangestringYes—binance, binancefutures, bybit, gateio, kraken or stocks
symbolstringYes—Pair or ticker, e.g. BTCUSDT or AAPL
timeframestringYes—1m 5m 15m 1h 4h 1d 1w
periodintegerNo14Period
srcKeystringNocloseSrc key
lbRintegerNo5Lb r
lbLintegerNo14Lb l
rangeUpperintegerNo60Range upper
rangeLowerintegerNo5Range lower
plotBullbooleanNoTruePlot bull
plotHiddenBullbooleanNoTruePlot hidden bull
plotBearbooleanNoTruePlot bear
plotHiddenBearbooleanNoTruePlot hidden bear
resultsintegerNo1Number of values to return, or max
backtrackintegerNo0Candles to skip from the most recent

What is RSI Divergence?

This endpoint scans for all four RSI divergence types at once. A regular divergence is price and RSI disagreeing at a new extreme, suggesting a possible reversal. A hidden divergence suggests a trend continuing. Results include the RSI value.

RSI Divergence formula

OutputCalculation
PivotsRSI swing points confirmed with lbL candles to the left and lbR to the right
RangeConsecutive pivots must be between rangeLower and rangeUpper candles apart

How to read RSI Divergence in your code

SignalMeaningCondition
Regular bullishLower price low, higher RSI lowNew entries in bull
Regular bearishHigher price high, lower RSI highNew entries in bear
Hidden bullishHigher price low, lower RSI lowNew entries in hiddenBull
Hidden bearishLower price high, higher RSI highNew entries in hiddenBear

Limitations: Confirmation needs lbR candles to the right of the pivot, so a divergence is only reported after that delay. Nothing on this page is financial advice.

Read RSI Divergence from Python

Use backtrack=1 to read the result as of the last closed candle.

curl -G https://v2.taapi.io/indicator/rsidivergence \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "exchange=binance" \
  --data-urlencode "symbol=BTCUSDT" \
  --data-urlencode "timeframe=1h" \
  --data-urlencode "backtrack=1"

Get historical RSI Divergence values

Add results to return a series for backtesting or charting. The last element is the most recent candle.

curl -G https://v2.taapi.io/indicator/rsidivergence \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "exchange=binance" \
  --data-urlencode "symbol=BTCUSDT" \
  --data-urlencode "timeframe=1h" \
  --data-urlencode "results=100"

Get RSI Divergence for multiple symbols

Combine RSI Divergence with other indicators in one request. Each exchange, symbol and timeframe combination is one construct: Basic allows 1 per request, Pro 3 and Expert 10.

POST/bulk
curl -X POST https://v2.taapi.io/bulk \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "constructs": [
    {
      "id": "btc_1h",
      "exchange": "binance",
      "symbol": "BTCUSDT",
      "timeframe": "1h",
      "indicators": [
        {
          "id": "rsidivergence",
          "indicator": "rsidivergence"
        },
        {
          "id": "rsi",
          "indicator": "rsi"
        }
      ]
    }
  ]
}'

Stream RSI Divergence in real time

Subscribe over WebSocket to receive new values every 5 seconds while the candle is forming. Streaming supports 1m, 5m, 15m and 1h, and uses interval where REST uses timeframe.

WSSwss://v2.taapi.io/streaming
{
  "type": "subscribe",
  "id": "rsidivergence",
  "exchange": "binance",
  "symbol": "BTCUSDT",
  "interval": "1m",
  "indicator": "rsidivergence"
}

RSI Divergence API FAQ

What does the RSI Divergence API return?

It returns bull, hiddenBull, bear, hiddenBear, rsi, plus a timestamp for the request. Results are JSON.

Is the latest RSI Divergence value final?

No. The newest value belongs to the candle still forming and can change until it closes. Add backtrack=1 to read the last closed candle.

Which RSI Divergence settings can I change?

You can set period, srcKey, lbR, lbL, rangeUpper, rangeLower. See the parameters table above for defaults.

Can I get RSI Divergence for US stocks?

Yes. Use exchange=stocks with a ticker such as AAPL. US stocks are included on the Pro plan and above.

See the full list of indicators, or start for free.