Stochastic RSI
Category: Momentum · Updated November 2026
The TAAPI.IO Stochastic RSI API returns the StochRSI %K and %D lines as JSON for crypto pairs and US stocks. Send an exchange, symbol and timeframe to get real-time or historical values, with no candles to download and no calculations to maintain.
What one request returns
- The two lines:
valueFastK, where RSI sits in its own recent range from 0 to 100, andvalueFastD, its moving average. - A series, with
results: one pair of values per candle, oldest first, to find crossovers. - A higher-timeframe check, with
/bulk: 4-hour Stochastic RSI and daily RSI in one request.
So one call answers two questions: is momentum stretched, and has it just turned?
Example: ten crossovers in four weeks, 18 October to 14 November 2026
Request: one /bulk call for ETHUSDT on 4-hour Binance candles, with Stochastic RSI (results=2, backtrack=1, so the last two closed candles). Sent at 22:37 UTC on 14 November with the default settings of 14, 14, 5 and 3.
| Candle | Fast %K | Fast %D | Reading |
|---|---|---|---|
| 4h, 14 Nov 12:00 | 42.14 | 43.30 | Mid-range, %K just below %D |
| 4h, 14 Nov 16:00 | 38.17 | 42.95 | No crossover in a zone |
How to interpret this: Stochastic RSI applies the Stochastic formula to RSI, so it measures where RSI sits in its own recent range. That makes it fast: between 18 October and 14 November ETH's 4-hour line gave ten crossovers in the overbought or oversold zone, six bearish and four bullish. In a downtrend the bearish ones were the better signals. The crossovers on 21 October, 2 November, 5 November and 12 November were followed by falls of 4.3%, 2.4%, 7.8% and 5.9% within a day. Two others, on 19 and 28 October, were followed by small rises. The four bullish crossovers below 20 led to moves between −1.1% and +0.5% over the next day, and ETH was 18% to 24% lower by 14 November. Today both lines are mid-range, at 38 and 43, while ETH's 4-hour RSI is 24 and its daily RSI 24.3. When RSI is this low, Stochastic RSI can still sit mid-range, because it only compares RSI with its own recent values.
| Crossover | Date | ETH close | One day later | Daily RSI | Filter |
|---|---|---|---|---|---|
| Bearish | 19 Oct 16:00 | 2,395.04 | +1.8% | 38.0 | take |
| Bearish | 21 Oct 16:00 | 2,494.54 | −4.3% | 43.1 | take |
| Bullish | 23 Oct 04:00 | 2,401.48 | −1.1% | 38.7 | skip |
| Bullish | 24 Oct 16:00 | 2,339.62 | +0.5% | 38.5 | skip |
| Bearish | 28 Oct 12:00 | 2,334.87 | +1.5% | 37.5 | take |
| Bullish | 30 Oct 20:00 | 2,245.54 | +0.5% | 30.6 | skip |
| Bearish | 2 Nov 00:00 | 2,309.25 | −2.4% | 34.8 | take |
| Bearish | 5 Nov 04:00 | 2,416.13 | −7.8% | 54.1 | skip |
| Bullish | 6 Nov 12:00 | 2,230.71 | +0.3% | 39.4 | skip |
| Bearish | 12 Nov 00:00 | 2,055.12 | −5.9% | 29.9 | take |
Values are from the production API on 14 November 2026, using closed 4-hour candles. "One day later" compares the close six candles on. "Daily RSI" is the previous daily close, as the filter below reads it. Ten signals are an illustration, not a backtest. Nothing here is financial advice.
| Spec | Value |
|---|---|
| Endpoint | GET https://v2.taapi.io/indicator/stochrsi |
| Outputs | Fast %K, fast %D, timestamp |
| Default settings | RSI period 14, stochastic period 14, K period 5, D period 3 |
| Markets | Binance, Binance Futures, Bybit, Gate.io, Kraken and US stocks |
| Timeframes | 1m to 1w |
| Delivery | REST, bulk and WebSocket |
Get Stochastic RSI with one API call
This request returns Stochastic RSI for BTCUSDT on 1-hour Binance candles. Add your API key to run it here.
curl -G https://v2.taapi.io/indicator/stochrsi \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "exchange=binance" \ --data-urlencode "symbol=BTCUSDT" \ --data-urlencode "timeframe=1h"
import requests
resp = requests.get(
'https://v2.taapi.io/indicator/stochrsi',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
params={'exchange': 'binance', 'symbol': 'BTCUSDT', 'timeframe': '1h'},
)
print(resp.json())const params = new URLSearchParams({"exchange": "binance", "symbol": "BTCUSDT", "timeframe": "1h"});
const res = await fetch(`https://v2.taapi.io/indicator/stochrsi?${params}`, {
headers: { Authorization: 'Bearer YOUR_API_KEY' },
});
console.log(await res.json());Stochastic RSI API response
This response came from the live API on 9 November 2026.
{
"valueFastK": [58.74069002804051],
"valueFastD": [54.388094968533515],
"timestamp": [1794218400]
}| Field | Type | Description |
|---|---|---|
valueFastK | number[] | Fast k |
valueFastD | number[] | Fast d |
timestamp | integer[] | Unix time of each candle, in seconds |
Stochastic RSI API parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
exchange | string | Yes | — | binance, binancefutures, bybit, gateio, kraken or stocks |
symbol | string | Yes | — | Pair or ticker, e.g. BTCUSDT or AAPL |
timeframe | string | Yes | — | 1m 5m 15m 1h 4h 1d 1w |
rsiPeriod | integer | No | 14 | RSI length |
stochasticPeriod | integer | No | 14 | Candles in the RSI high-low range |
kPeriod | integer | No | 5 | Smoothing applied to %K |
dPeriod | integer | No | 3 | Moving average length for %D |
results | integer | No | 1 | Number of values to return, or max |
backtrack | integer | No | 0 | Candles to skip from the most recent |
What is Stochastic RSI?
Stochastic RSI, from Tushar Chande and Stanley Kroll, applies the Stochastic formula to RSI values instead of price. It measures where RSI sits within its own recent range, which makes it faster and more sensitive than RSI.
Stochastic RSI formula
| Output | Calculation |
|---|---|
| RSI | RSI over rsiPeriod candles |
| StochRSI | (RSI − lowest RSI) ÷ (highest RSI − lowest RSI) × 100, over stochasticPeriod candles |
| Fast %K | StochRSI smoothed over kPeriod |
| Fast %D | Moving average of Fast %K over dPeriod |
Because it is a range position, StochRSI reaches 0 or 100 whenever RSI makes a new low or high for the window, even if RSI itself is only at 45 or 55. That is why it fires far more often than RSI.
How to read Stochastic RSI in your code
| Signal | Meaning | Condition |
|---|---|---|
| Overbought | RSI at the top of its range | valueFastK above 80 |
| Oversold | RSI at the bottom of its range | valueFastK below 20 |
| Bullish crossover | RSI momentum turning up | valueFastK crosses above valueFastD below 20 |
| Bearish crossover | RSI momentum turning down | valueFastK crosses below valueFastD above 80 |
Limitations: it hits its extremes very often, so most readings are noise without a filter. Nothing on this page is financial advice.
Stochastic RSI or RSI?
RSI answers how strong momentum is. Stochastic RSI answers whether momentum is at the top or bottom of its recent range. A deeply oversold market can show a mid-range Stochastic RSI, as ETH did on 14 November with RSI at 24, because RSI had been even lower a few candles earlier. Use RSI to judge the market's condition and Stochastic RSI to time turns within it.
Filter Stochastic RSI crossovers with daily RSI
A 4-hour crossover is taken only if the daily trend agrees: bearish crossovers while daily RSI is below 50, bullish ones while it is at 50 or above. One /bulk request returns both. Two constructs need the Pro plan or above. On Basic, make two GET requests instead.
curl -X POST https://v2.taapi.io/bulk \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"constructs": [
{
"id": "eth_4h",
"exchange": "binance",
"symbol": "ETHUSDT",
"timeframe": "4h",
"indicators": [
{
"id": "stochrsi",
"indicator": "stochrsi",
"results": 2,
"backtrack": 1
}
]
},
{
"id": "eth_1d",
"exchange": "binance",
"symbol": "ETHUSDT",
"timeframe": "1d",
"indicators": [
{
"id": "rsi",
"indicator": "rsi",
"backtrack": 1
}
]
}
]
}'import requests
payload = {
"constructs": [
{
"id": "eth_4h",
"exchange": "binance",
"symbol": "ETHUSDT",
"timeframe": "4h",
"indicators": [
{
"id": "stochrsi",
"indicator": "stochrsi",
"results": 2,
"backtrack": 1
}
]
},
{
"id": "eth_1d",
"exchange": "binance",
"symbol": "ETHUSDT",
"timeframe": "1d",
"indicators": [
{
"id": "rsi",
"indicator": "rsi",
"backtrack": 1
}
]
}
]
}
resp = requests.post(
'https://v2.taapi.io/bulk',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
json=payload,
)
data = resp.json()
k = data['eth_4h']['stochrsi']['valueFastK']
d = data['eth_4h']['stochrsi']['valueFastD']
daily_rsi = data['eth_1d']['rsi']['value'][-1]
bull = k[0] <= d[0] and k[1] > d[1] and k[1] < 20
bear = k[0] >= d[0] and k[1] < d[1] and k[1] > 80
if bull and daily_rsi >= 50:
print('Bullish crossover with daily RSI at 50 or above: buy signal')
elif bear and daily_rsi < 50:
print('Bearish crossover with daily RSI below 50: sell signal')
elif bull or bear:
print(f'Crossover against the daily RSI ({daily_rsi:.1f}): skip')
else:
print(f'No crossover in a zone (%K {k[1]:.1f}, %D {d[1]:.1f}), daily RSI {daily_rsi:.1f}')The response at 22:37 UTC on 14 November. Neither line is in a zone, so the script prints No crossover in a zone (%K 38.2, %D 42.9), daily RSI 24.3
{
"eth_4h": {
"stochrsi": {
"valueFastK": [42.14181180694379, 38.174019550626944],
"valueFastD": [43.3012184879812, 42.94698048970826],
"timestamp": [1794657600, 1794672000]
}
},
"eth_1d": {
"rsi": {
"value": [24.26876662277223],
"timestamp": [1794528000]
}
}
}Since 18 October this rule took five of the six bearish crossovers and skipped all four bullish ones. It missed the best signal, on 5 November, because the 4 November rally had lifted ETH's daily RSI to 54.1. Trend filters often turn at the top of a bounce, which is exactly where sell signals work best. Other common filters: require the crossover on two timeframes, or confirm with a MACD crossover.
Get historical Stochastic RSI 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/stochrsi \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "exchange=binance" \ --data-urlencode "symbol=BTCUSDT" \ --data-urlencode "timeframe=1h" \ --data-urlencode "results=100"
Get Stochastic RSI for multiple symbols
Combine Stochastic RSI 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.
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": "stochrsi",
"indicator": "stochrsi"
},
{
"id": "rsi",
"indicator": "rsi"
}
]
}
]
}'Stream Stochastic RSI 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.
{
"type": "subscribe",
"id": "stochrsi",
"exchange": "binance",
"symbol": "BTCUSDT",
"interval": "1m",
"indicator": "stochrsi"
}Common Stochastic RSI settings
These are starting points, not recommendations. Test any setting on your own market and timeframe.
| Settings | Character | Typical use |
|---|---|---|
| 14, 14, 5, 3 | API default | General use |
| 14, 14, 3, 3 | Common chart default | Matching most charting platforms |
| 21, 21, 5, 5 | Slower | Fewer crossovers |
Why Stochastic RSI values can differ between platforms
- Settings: the API smooths %K over 5 candles by default. Many charts use 3. Set
kPeriod=3to match them. - RSI history: Stochastic RSI inherits any difference in the RSI underneath, which depends on how much history the calculation starts from.
- Open candle: the newest values change until the candle closes. Use
backtrack=1to read closed candles.
Stochastic RSI API FAQ
What does the Stochastic RSI API return?
Two arrays, valueFastK and valueFastD, from 0 to 100, plus a timestamp for each candle.
Why does Stochastic RSI hit 0 and 100 so often?
It measures where RSI sits in its own recent range, so every new RSI high or low for the window reads as 100 or 0. See Stochastic RSI or RSI?.
How do I match my chart's Stochastic RSI?
Most charts use 14, 14, 3, 3. Set kPeriod=3. The API default is 5.
Is the latest Stochastic RSI 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.
Can I get Stochastic RSI for US stocks?
Yes. Use exchange=stocks with a ticker such as AAPL. US stocks are included on the Pro plan and above.
Related indicators
- Relative Strength Index (RSI): the input to Stochastic RSI
- Stochastic Oscillator: the same formula applied to price
- MACD: momentum from two moving averages
- RSI Divergence: price and RSI disagreeing
Build with Stochastic RSI on Binance, Bybit or US stocks. Start for free or browse all 262 indicators.