Fibonacci Retracement
Category: Trend · Updated November 2026
The TAAPI.IO Fibonacci Retracement API returns value, trend, start price, end price values for the Fibonacci Retracement 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.
| Spec | Value |
|---|---|
| Endpoint | GET https://v2.taapi.io/indicator/fibonacciretracement |
| Outputs | value, trend, startPrice, endPrice, startTimestamp, endTimestamp |
| Markets | Binance, Binance Futures, Bybit, Gate.io, Kraken and US stocks |
| Timeframes | 1m to 1w |
| Delivery | REST, bulk and WebSocket |
Get Fibonacci Retracement with one API call
This request returns Fibonacci Retracement for BTCUSDT on 1-hour Binance candles. Add your API key to run it here.
curl -G https://v2.taapi.io/indicator/fibonacciretracement \ -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/fibonacciretracement',
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/fibonacciretracement?${params}`, {
headers: { Authorization: 'Bearer YOUR_API_KEY' },
});
console.log(await res.json());Fibonacci Retracement API response
This response came from the live API on 9 November 2026. Long lists are shortened here.
{
"value": 75203.31382000001,
"trend": "DOWNTREND",
"startPrice": 76249.99,
"endPrice": 73510,
"startTimestamp": 1794042000,
"endTimestamp": 1794171600,
"timestamp": [1794218400]
}| Field | Type | Description |
|---|---|---|
value | number | Value |
trend | string | Trend |
startPrice | number | Start price |
endPrice | number | End price |
startTimestamp | number | Start timestamp |
endTimestamp | number | End timestamp |
timestamp | integer[] | Unix time of each candle, in seconds |
Fibonacci Retracement 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 |
period | integer | No | 50 | Period |
retracement | number | No | 0.618 | Retracement |
trend | string | No | AUTO | Trend |
results | integer | No | 1 | Number of values to return, or max |
backtrack | integer | No | 0 | Candles to skip from the most recent |
What is Fibonacci Retracement?
Fibonacci retracement finds a price swing and calculates the level at a chosen ratio of that swing. Traders watch ratios such as 38.2%, 50% and 61.8% as possible support or resistance during pullbacks. The endpoint returns the level along with the swing it was measured from.
Fibonacci Retracement formula
| Output | Calculation |
|---|---|
| Uptrend level | Swing high − (swing high − swing low) × retracement |
| Downtrend level | Swing low + (swing high − swing low) × retracement |
How to read Fibonacci Retracement in your code
| Signal | Meaning | Condition |
|---|---|---|
| Level | Price of the chosen retracement | value |
| Swing direction | Detected or forced trend | trend |
| Swing bounds | Where the measurement starts and ends | startPrice and endPrice |
Limitations: Levels depend entirely on which swing is chosen, and the ratios have no proven causal basis. Treat them as zones. Nothing on this page is financial advice.
Read Fibonacci Retracement from Python
Use backtrack=1 to read the result as of the last closed candle.
curl -G https://v2.taapi.io/indicator/fibonacciretracement \ -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/fibonacciretracement',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
params={'exchange': 'binance', 'symbol': 'BTCUSDT', 'timeframe': '1h', 'backtrack': 1},
)
data = resp.json()
print(data['value'])Get historical Fibonacci Retracement 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/fibonacciretracement \ -H "Authorization: Bearer YOUR_API_KEY" \ --data-urlencode "exchange=binance" \ --data-urlencode "symbol=BTCUSDT" \ --data-urlencode "timeframe=1h" \ --data-urlencode "results=100"
Get Fibonacci Retracement for multiple symbols
Combine Fibonacci Retracement 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": "fibonacciretracement",
"indicator": "fibonacciretracement"
},
{
"id": "rsi",
"indicator": "rsi"
}
]
}
]
}'Stream Fibonacci Retracement 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": "fibonacciretracement",
"exchange": "binance",
"symbol": "BTCUSDT",
"interval": "1m",
"indicator": "fibonacciretracement"
}Fibonacci Retracement API FAQ
What does the Fibonacci Retracement API return?
It returns value, trend, startPrice, endPrice, startTimestamp, endTimestamp, plus a timestamp for the request. Results are JSON.
Is the latest Fibonacci Retracement 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 Fibonacci Retracement settings can I change?
You can set period, retracement, trend. See the parameters table above for defaults.
Can I get Fibonacci Retracement 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.