Support & Resistance
Category: Support, resistance & structure · Updated November 2026
The TAAPI.IO Support & Resistance API finds the horizontal price levels where a market has turned more than once: support, the floors where buyers stepped in, and resistance, the ceilings where sellers did. It works on crypto pairs and US stocks. Send an exchange, symbol and timeframe, with no candles to download and no calculations to maintain.
What one request returns
- The nearest support and resistance:
nearest_supportandnearest_resistance, with their distance from price in percent. These are always included. - The current price:
current_price, so the distances need no second request. - Every level, with
results=max: its price, whether it sits below price (support) or above it (resistance) right now, how many times price turned there, when it last did, how far away it is in percent, and whether price has since closed through it.
So one call answers three questions: where is the next floor, where is the next ceiling, and how much room is there to each?
Example: NVDA on 10 November 2026
Request: NVDA on daily candles with lookback=10, lookforward=10 and results=max. Taken at 10:05 UTC, before the US open, so the current price includes pre-market trading.
| Level | Price | From price | Where it comes from |
|---|---|---|---|
| Resistance | 190.20 | +4.5% | Tops in December 2025 and January 2026 |
| Nearest resistance | 182.86 | +0.4% | Turned price down in July 2025 and March 2026 |
| Current price | 182.08 | — | Latest daily candle |
| Nearest support | 176.89 | −2.8% | Lows in October and November 2025 |
| Support | 170.65 | −6.3% | Lows in December 2025 and February 2026 |
How to interpret this: NVDA ran up to about 243 in October, then fell hard, and it's now back in the 170–190 range it traded in last winter. That old range left marks. Price is sitting just under a ceiling at 182.86, only 0.4% higher, where it turned down twice before. The first floor is 176.89, 2.8% lower. Yesterday the stock dipped to 170.24, right at the next floor of 170.65, and bounced. So the level to watch is 182.86: a daily close above it opens room to 190.20, and a close below 176.89 brings 170.65 back into play.
All four levels show broken: true, because price has closed through each of them at some point. Levels that price keeps coming back to still matter, which is why the nearest_* fields include them. Example for illustration only, not financial advice.
| Spec | Value |
|---|---|
| Endpoint | GET https://v2.taapi.io/indicator/supportresistance |
| Outputs | line_type, price, role, touches, last_touch_timestamp, distance_percent, broken, nearest_support, nearest_resistance |
| Markets | Binance, Binance Futures, Bybit, Gate.io, Kraken and US stocks |
| Timeframes | 1m to 1w |
| Delivery | REST, bulk and WebSocket |
Get Support & Resistance with one API call
This request returns Support & Resistance for BTCUSDT on 1-hour Binance candles. Add your API key to run it here.
curl -G https://v2.taapi.io/indicator/supportresistance \ -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/supportresistance',
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/supportresistance?${params}`, {
headers: { Authorization: 'Bearer YOUR_API_KEY' },
});
console.log(await res.json());Support & Resistance API response
Example for BTCUSDT on 1-day Binance candles, 9 November 2026. Long lists are shortened here.
{
"line_type": ["support"],
"left_timestamp": [1719187200],
"right_timestamp": [1794182400],
"price": [60293.3],
"pattern_index": [20],
"role": ["support"],
"touches": [2],
"last_touch_timestamp": [1728518400],
"distance": [-14618.709999999992],
"distance_percent": [-19.514507753830117],
"broken": [true],
"broken_timestamp": [1782345600],
"current_price": 74912.01,
"nearest_support": 73072.4,
"nearest_support_distance_percent": -2.455694353949388,
"nearest_resistance": 75644.48,
"nearest_resistance_distance_percent": 0.9777737908781265,
"timestamp": [1794182400]
}| Field | Type | Description |
|---|---|---|
line_type | string[] | Type of pivot the line was built from. It does not change when price crosses the line, so use role for the side of price |
left_timestamp | number[] | Earliest pivot on the line |
right_timestamp | number[] | Latest candle |
price | number[] | Horizontal price level |
pattern_index | number[] | Rank, where 1 is the strongest line |
role | string[] | support if the line is below the current price, resistance if above |
touches | number[] | Pivots merged into the line |
last_touch_timestamp | number[] | Most recent of those pivots |
distance | number[] | Line price minus current price |
distance_percent | number[] | Distance as a percentage of current price; negative is below |
broken | boolean[] | A later candle closed through the line, beyond the merge distance |
broken_timestamp | (number or null)[] | First such close, or null |
current_price | number | Close of the latest candle |
nearest_support | number or null | Closest qualifying level below price |
nearest_support_distance_percent | number or null | Its distance from price |
nearest_resistance | number or null | Closest qualifying level above price |
nearest_resistance_distance_percent | number or null | Its distance from price |
timestamp | integer[] | Unix time of each candle, in seconds |
The default results=1 returns only the last line in the list, which is the lowest ranked. Add results=max to get every line. current_price and the nearest_* fields are always included and do not depend on results. The nearest levels can come from lines beyond max_lines, and can include broken lines, since a broken level often acts from the other side.
Multi-day levels
For daily levels, use timeframe=1d with lookback=10 and lookforward=10, and add results=max to get every line. A swing then has to be the highest or lowest of 21 days, about three weeks, which keeps the swings traders watch over several weeks and drops short-term noise. The default of 5 suits shorter timeframes and finds more levels closer to price.
curl -G https://v2.taapi.io/indicator/supportresistance \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "exchange=binance" \ --data-urlencode "symbol=BTCUSDT" \ --data-urlencode "timeframe=1d" \ --data-urlencode "lookback=10" \ --data-urlencode "lookforward=10" \ --data-urlencode "results=max"
A swing is confirmed only after lookforward more daily candles have closed, so with 10 a new level appears 10 days after the swing that forms it. To see new levels sooner while still requiring a large swing, lower lookforward and keep lookback high, for example 15 and 5. A much wider window leaves few lines: on BTCUSDT 1d, a window of 20 returned no resistance above price. To focus on levels that still hold, filter on broken=false and sort by distance_percent.
Support & Resistance 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 |
lookback | integer | No | 5 | Candles before a swing that it must be higher or lower than. Use 10 for daily levels |
lookforward | integer | No | 5 | Candles after a swing that must close before it is confirmed. New levels appear this many candles late. Use 10 for daily levels |
deviationATR | number | No | 1 | Deviation atr |
deviationType | string | No | atr | Deviation type |
source | string | No | wick | Source |
merge_distance | number | No | 0.5 | How close two swings must be to merge into one level, as a percent of price: 0.5 means within 0.5%. A later close must also clear a level by this much to mark it broken. Raise it, for example to 1 or 1.5, to merge nearby levels on volatile markets |
min_touches | integer | No | 2 | Min touches |
max_lines | integer | No | 20 | Max lines |
results | integer | No | 1 | Number of values to return, or max |
backtrack | integer | No | 0 | Candles to skip from the most recent |
What is Support & Resistance?
This endpoint detects horizontal support and resistance lines from price pivots, merges nearby levels and keeps those touched enough times. Each line comes with its type, price and the timestamps it spans.
Support & Resistance formula
| Output | Calculation |
|---|---|
| Pivots | Swing points confirmed by lookback and lookforward, and filtered by ATR deviation |
| Lines | Pivots within merge_distance percent of each other grouped into levels with at least min_touches touches |
How to read Support & Resistance in your code
| Signal | Meaning | Condition |
|---|---|---|
| Type | Support or resistance | line_type |
| Level | Line price | price |
| Span | When the level was active | left_timestamp to right_timestamp |
Limitations: Pivots need lookforward candles to confirm, so the newest structure appears with a delay. Nothing on this page is financial advice.
Read Support & Resistance from Python
Use backtrack=1 to read the result as of the last closed candle.
curl -G https://v2.taapi.io/indicator/supportresistance \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "exchange=binance" \ --data-urlencode "symbol=BTCUSDT" \ --data-urlencode "timeframe=1h" \ --data-urlencode "backtrack=1"
import requests
resp = requests.get(
'https://v2.taapi.io/indicator/supportresistance',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
params={'exchange': 'binance', 'symbol': 'BTCUSDT', 'timeframe': '1h', 'backtrack': 1},
)
data = resp.json()
print(data['line_type'])Get historical Support & Resistance 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/supportresistance \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "exchange=binance" \ --data-urlencode "symbol=BTCUSDT" \ --data-urlencode "timeframe=1h" \ --data-urlencode "results=100"
Get Support & Resistance for multiple symbols
Combine Support & Resistance 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": "supportresistance",
"indicator": "supportresistance"
},
{
"id": "rsi",
"indicator": "rsi"
}
]
}
]
}'Stream Support & Resistance 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": "supportresistance",
"exchange": "binance",
"symbol": "BTCUSDT",
"interval": "1m",
"indicator": "supportresistance"
}Support & Resistance API FAQ
What does the Support & Resistance API return?
It returns line_type, left_timestamp, right_timestamp, price, pattern_index, plus a timestamp for the request. Results are JSON.
Is the latest Support & Resistance 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 Support & Resistance settings can I change?
You can set lookback, lookforward, deviationATR, deviationType, source, merge_distance. See the parameters table above for defaults.
Can I get Support & Resistance 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
See the full list of indicators, or start for free.