GET/indicator/prevhl

Previous Day/Week High and Low

Category: Support, resistance & structure · Updated November 2026


The TAAPI.IO Previous High & Low API returns prev high, prev low, prev open, prev close values for the Previous Day/Week High and Low 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/prevhl
OutputsprevHigh, prevLow, prevOpen, prevClose, prevStart, currentHigh and more
MarketsBinance, Binance Futures, Bybit, Gate.io, Kraken and US stocks
Timeframes1m to 1w
DeliveryREST, bulk and WebSocket

Get Previous High & Low with one API call

This request returns Previous High & Low for BTCUSDT on 1-hour Binance candles. Add your API key to run it here.

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

Previous High & Low API response

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

200 OK
{
  "prevHigh": [76200],
  "prevLow": [73510],
  "prevOpen": [75867.58],
  "prevClose": [74851.44],
  "prevStart": [1794096000],
  "currentHigh": [75599.22],
  "currentLow": [73750],
  "premarketHigh": [null],
  "premarketLow": [null],
  "position": ["inside"],
  "brokeHigh": [false],
  "brokeLow": [false],
  "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
prevHighnumber[]High of the previous day or week (null until a full previous period is available)
prevLownumber[]Low of the previous day or week
prevOpennumber[]Open of the previous day or week
prevClosenumber[]Close of the previous day or week
prevStartnumber[]Timestamp of the first candle of the previous period
currentHighnumber[]High of the current day or week so far (null before its session opens)
currentLownumber[]Low of the current day or week so far
premarketHigharrayUS stocks, period day: today's 04:00-09:30 pre-market high (null for crypto)
premarketLowarrayUS stocks, period day: today's pre-market low (null for crypto)
positionstring[]Close against the previous range: above, below or inside
brokeHighboolean[]True once the current period has traded above the previous high
brokeLowboolean[]True once the current period has traded below the previous low
timestampinteger[]Unix time of each candle, in seconds

Previous High & Low 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
periodstringNodayday (previous day high/low) or week (previous week high/low). Stocks follow the New York calendar, crypto uses UTC days and Monday 00:00 UTC weeks.
sessionstringNoregularUS stocks only: regular builds levels from the 09:30-16:00 New York session (13:00 on early-close days), extended from 04:00-20:00 including pre-market and after-hours.
marketstringNocryptoOnly for POST with your own candles, which carry no exchange: stocks to apply US stock sessions, otherwise crypto.
resultsintegerNo1Number of values to return, or max
backtrackintegerNo0Candles to skip from the most recent

What is Previous High & Low?

This endpoint returns the previous day or week's high, low, open and close, together with today's range and whether price has broken those levels. For stocks it can also report pre-market levels. These reference levels are central to many intraday strategies.

Previous High & Low formula

OutputCalculation
Previous levelsHigh, low, open and close of the last completed day or week

How to read Previous High & Low in your code

SignalMeaningCondition
Reference levelsPrior period rangeprevHigh and prevLow
BreakoutPrior extreme brokenbrokeHigh or brokeLow
LocationWhere price is against the rangeposition

Limitations: Levels are reference points only. A break of a prior high often reverses. Nothing on this page is financial advice.

Read Previous High & Low from Python

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

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

Get historical Previous High & Low 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/prevhl \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "exchange=binance" \
  --data-urlencode "symbol=BTCUSDT" \
  --data-urlencode "timeframe=1h" \
  --data-urlencode "results=100"

Get Previous High & Low for multiple symbols

Combine Previous High & Low 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": "prevhl",
          "indicator": "prevhl"
        },
        {
          "id": "rsi",
          "indicator": "rsi"
        }
      ]
    }
  ]
}'

Stream Previous High & Low 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": "prevhl",
  "exchange": "binance",
  "symbol": "BTCUSDT",
  "interval": "1m",
  "indicator": "prevhl"
}

Previous High & Low API FAQ

What does the Previous High & Low API return?

It returns prevHigh, prevLow, prevOpen, prevClose, prevStart, currentHigh, currentLow, premarketHigh, premarketLow, position, brokeHigh, brokeLow, plus a timestamp for the request. Results are JSON.

Is the latest Previous High & Low 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 Previous High & Low settings can I change?

You can set period, session, market. See the parameters table above for defaults.

Can I get Previous High & Low for US stocks?

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

Does Previous High & Low work for stocks?

Yes. Set market for your asset class and session to choose regular hours. premarketHigh and premarketLow carry the pre-market range.

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