/v1/ohlc
Candlestick history
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/kraken-api/v1/ohlc" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/kraken-api/v1/ohlc", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/kraken-api/v1/ohlc");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/kraken-api/v1/ohlc",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"pair": "XXBTZUSD",
"count": 200,
"candles": [
{
"low": 73260.5,
"high": 73745.9,
"open": 73673,
"time": 1780286400,
"vwap": 73373.3,
"close": 73429.8,
"trades": 1553,
"volume": 15.42807506
},
{
"low": 73218.4,
"high": 73434.3,
"open": 73429.8,
"time": 1780290000,
"vwap": 73371.5,
"close": 73256.2,
"trades": 1502,
"volume": 25.01180135
},
{
"low": 72867.8,
"high": 73270,
"open": 73256.6,
"time": 1780293600,
"vwap": 73049.2,
"close": 73041.7,
"trades": 2677,
"volume": 50.18040824
},
{
"low": 72613.7,
"high": 73100,
"open": 73042,
"time": 1780297200,
"vwap": 72821.8,
"close": 72719.8,
"trades": 2937,
"volume": 64.65090393
},
{
"low": 72523.5,
"high": 72835.3,
"open": 72719.8,
"time": 1780300800,
"vwap": 72718.6,
"close": 72799.8,
"trades": 2579,
"volume": 53.80533108
},
{
"low": 72732.7,
"high": 72999.9,
"open": 72799.9,
"time": 1780304400,
"vwap": 72857,
"close": 72789.6,
"trades": 2686,
"volume": 89.74172298
},
{
"low": 72508.6,
"high": 72817.3,
"open": 72789.7,
"time": 1780308000,
"vwap": 72660.4,
"close": 72659.2,
"trades": 2989,
"volume": 39.27714073
},
{
"low": 72200,
"high": 72683.5,
"open": 72659.2,
"time": 1780311600,
"vwap": 72447.7,
"close": 72384.3,
"trades": 3316,
"volume": 116.61587946
},
{
"low": 71844,
"high": 72529.3,
"open": 72391.6,
"time": 1780315200,
"vwap": 72087.8,
"close": 72130,
"trades": 5872,
"volume": 186.82815353
},
{
"low": 71275,
"high": 72143.2,
"open": 72127.3,
"time": 1780318800,
"vwap": 71683.2,
"close": 71614.2,
…