GET/indicator/fvg

Fair Value Gap (FVG)

Category: Support, resistance & structure · Updated November 2026


The TAAPI.IO Fair Value Gap API returns value, top, bottom, bullish top values for the Fair Value Gap (FVG) 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/fvg
Outputsvalue, top, bottom, bullishTop, bullishBottom, bullishTimestamp and more
MarketsBinance, Binance Futures, Bybit, Gate.io, Kraken and US stocks
Timeframes1m to 1w
DeliveryREST, bulk and WebSocket

Get Fair Value Gap with one API call

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

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

Fair Value Gap API response

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

200 OK
{
  "value": [0],
  "top": [null],
  "bottom": [null],
  "bullishTop": [73668],
  "bullishBottom": [73400],
  "bullishTimestamp": [1787270400],
  "bullishCount": [10],
  "bearishTop": [74750],
  "bearishBottom": [74655.24],
  "bearishTimestamp": [1794200400],
  "bearishCount": [17],
  "timestamp": [1794218400]
}

This response can be null or empty when there is nothing to report for the requested candles, so handle that case in your code.

FieldTypeDescription
valuenumber[]Gap confirmed on this candle: 1 bullish, -1 bearish, 0 none
toparrayUpper edge of the gap confirmed on this candle (null if none)
bottomarrayLower edge of the gap confirmed on this candle (null if none)
bullishTopnumber[]Upper edge of the most recent unfilled bullish gap (null if none)
bullishBottomnumber[]Lower edge of the most recent unfilled bullish gap (null if none)
bullishTimestampnumber[]Timestamp of the middle candle of the most recent unfilled bullish gap
bullishCountnumber[]Number of unfilled bullish gaps
bearishTopnumber[]Upper edge of the most recent unfilled bearish gap (null if none)
bearishBottomnumber[]Lower edge of the most recent unfilled bearish gap (null if none)
bearishTimestampnumber[]Timestamp of the middle candle of the most recent unfilled bearish gap
bearishCountnumber[]Number of unfilled bearish gaps
timestampinteger[]Unix time of each candle, in seconds

Fair Value Gap 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
thresholdnumberNo0Minimum gap size as a percentage of the middle candle's close (0-100). Smaller gaps are ignored.
fillModestringNowickWhen an open gap counts as filled: wick (price touches the far edge) or close (a candle closes beyond it).
resultsintegerNo1Number of values to return, or max
backtrackintegerNo0Candles to skip from the most recent

What is Fair Value Gap?

A Fair Value Gap is a three-candle imbalance where the wicks of the first and third candles do not overlap, which leaves a price zone that traded one-sidedly. The endpoint returns gaps as they form as well as the most recent unfilled bullish and bearish zones.

Fair Value Gap formula

OutputCalculation
Bullish gapLow of candle 3 above the high of candle 1
Bearish gapHigh of candle 3 below the low of candle 1

How to read Fair Value Gap in your code

SignalMeaningCondition
New gapGap confirmed on this candlevalue is 1 (bullish) or −1 (bearish)
Open bullish zonePossible supportbullishTop to bullishBottom
Open bearish zonePossible resistancebearishTop to bearishBottom

Limitations: Many gaps fill without a useful reaction, and small ones are common, so use threshold to filter noise. Nothing on this page is financial advice.

Read Fair Value Gap from Python

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

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

Get historical Fair Value Gap 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/fvg \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "exchange=binance" \
  --data-urlencode "symbol=BTCUSDT" \
  --data-urlencode "timeframe=1h" \
  --data-urlencode "results=100"

Get Fair Value Gap for multiple symbols

Combine Fair Value Gap 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": "fvg",
          "indicator": "fvg"
        },
        {
          "id": "rsi",
          "indicator": "rsi"
        }
      ]
    }
  ]
}'

Stream Fair Value Gap 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": "fvg",
  "exchange": "binance",
  "symbol": "BTCUSDT",
  "interval": "1m",
  "indicator": "fvg"
}

Fair Value Gap API FAQ

What does the Fair Value Gap API return?

It returns value, top, bottom, bullishTop, bullishBottom, bullishTimestamp, bullishCount, bearishTop, bearishBottom, bearishTimestamp, bearishCount, plus a timestamp for the request. Results are JSON.

Is the latest Fair Value Gap 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 Fair Value Gap settings can I change?

You can set threshold, fillMode. See the parameters table above for defaults.

Can I get Fair Value Gap 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.