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.
| Spec | Value |
|---|---|
| Endpoint | GET https://v2.taapi.io/indicator/prevhl |
| Outputs | prevHigh, prevLow, prevOpen, prevClose, prevStart, currentHigh and more |
| Markets | Binance, Binance Futures, Bybit, Gate.io, Kraken and US stocks |
| Timeframes | 1m to 1w |
| Delivery | REST, 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"
import requests
resp = requests.get(
'https://v2.taapi.io/indicator/prevhl',
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/prevhl?${params}`, {
headers: { Authorization: 'Bearer YOUR_API_KEY' },
});
console.log(await res.json());Previous High & Low API response
This response came from the live API on 9 November 2026. Long lists are shortened here.
{
"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.
| Field | Type | Description |
|---|---|---|
prevHigh | number[] | High of the previous day or week (null until a full previous period is available) |
prevLow | number[] | Low of the previous day or week |
prevOpen | number[] | Open of the previous day or week |
prevClose | number[] | Close of the previous day or week |
prevStart | number[] | Timestamp of the first candle of the previous period |
currentHigh | number[] | High of the current day or week so far (null before its session opens) |
currentLow | number[] | Low of the current day or week so far |
premarketHigh | array | US stocks, period day: today's 04:00-09:30 pre-market high (null for crypto) |
premarketLow | array | US stocks, period day: today's pre-market low (null for crypto) |
position | string[] | Close against the previous range: above, below or inside |
brokeHigh | boolean[] | True once the current period has traded above the previous high |
brokeLow | boolean[] | True once the current period has traded below the previous low |
timestamp | integer[] | Unix time of each candle, in seconds |
Previous High & Low 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 | string | No | day | day (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. |
session | string | No | regular | US 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. |
market | string | No | crypto | Only for POST with your own candles, which carry no exchange: stocks to apply US stock sessions, otherwise crypto. |
results | integer | No | 1 | Number of values to return, or max |
backtrack | integer | No | 0 | Candles 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
| Output | Calculation |
|---|---|
| Previous levels | High, low, open and close of the last completed day or week |
How to read Previous High & Low in your code
| Signal | Meaning | Condition |
|---|---|---|
| Reference levels | Prior period range | prevHigh and prevLow |
| Breakout | Prior extreme broken | brokeHigh or brokeLow |
| Location | Where price is against the range | position |
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"
import requests
resp = requests.get(
'https://v2.taapi.io/indicator/prevhl',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
params={'exchange': 'binance', 'symbol': 'BTCUSDT', 'timeframe': '1h', 'backtrack': 1},
)
data = resp.json()
print(data['prevHigh'])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.
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.
{
"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.
Related indicators
See the full list of indicators, or start for free.