OHLC: Get OHLC data

API: kraken.com:kraken
Endpoint: /0/public/OHLC
Response format: application/json
Auth: unknown
Method: GET
Last Status: 200
Latency: 182ms

Description

Returns historical OHLC data as time-series candlestick data suitable for charting and technical analysis. Each candle includes open, high, low, close prices, volume-weighted average price (VWAP), volume, and trade count. Use this for trend analysis, backtesting strategies, and populating price charts.

From spec: Get OHLC (Open, High, Low, Close) data for an asset pair.

Usage Tips

- Interval values: 1 (1 min), 5, 15, 30, 60, 240, 1440 (1 day), 10080 (1 week), 21600 (15 days) - Since parameter: Returns data since given Unix timestamp; omit for last 720 intervals - Returns up to 720 candles per request - First value in each array is the Unix timestamp in seconds

Parameters (3)

interval (integer, query, optional, default: 1)

Time frame interval in minutes (1, 5, 15, 30, 60, 240, 1440, 10080, 21600). Default: 1.

Constraints: {'enum': [1, 5, 15, 30, 60, 240, 1440, 10080, 21600]}

pair (string, query, required)

Asset pair to get data for (required)

since (integer, query, optional)

Return committed OHLC data since given ID (exclusive)

Examples (1)

Get hourly OHLC data for Bitcoin/USD probe-gate

Demonstrates fetching 1-hour OHLC candlestick data for BTC/USD suitable for hourly charting and trend analysis.

curl 'https://api.kraken.com/0/public/OHLC?pair=XXBTZUSD&interval=60'
import requests

resp = requests.get(
    "https://api.kraken.com/0/public/OHLC",
    params={
        'pair': 'XXBTZUSD',
        'interval': '60',
    },
)
data = resp.json()
import zingu_apis

api = zingu_apis.api("kraken")
result = api.fetch("0/public/OHLC", pair="XXBTZUSD", interval=60)

for item in result:
    print(item)
const resp = await fetch("https://api.kraken.com/0/public/OHLC?pair=XXBTZUSD&interval=60");
const data = await resp.json();

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-04-16 04:16:35.849218 200 182ms
2026-04-15 01:23:25.938018 200 190ms
2026-04-14 03:59:00.495283 200 162ms
2026-04-12 12:49:06.386634 200 143ms
2026-04-10 01:54:06.156671 200 128ms
2026-04-09 03:09:13.605071 200 561ms