/v1/candles
Bucketed OHLC candles
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/bitmex-api/v1/candles" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bitmex-api/v1/candles", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bitmex-api/v1/candles");
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/bitmex-api/v1/candles",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"count": 100,
"symbol": "XBTUSD",
"candles": [
{
"low": 65504.3,
"high": 65900.3,
"open": 65524.9,
"vwap": 65726.7738,
"close": 65834.8,
"trades": 1293,
"volume": 7456900,
"timestamp": "2026-06-15T11:00:00.000Z"
},
{
"low": 65433,
"high": 65715.1,
"open": 65588.3,
"vwap": 65544.9737,
"close": 65524.9,
"trades": 862,
"volume": 3947200,
"timestamp": "2026-06-15T10:00:00.000Z"
},
{
"low": 65544.5,
"high": 65723.1,
"open": 65592.8,
"vwap": 65626.7022,
"close": 65588.3,
"trades": 728,
"volume": 2670100,
"timestamp": "2026-06-15T09:00:00.000Z"
},
{
"low": 65550.1,
"high": 65942.6,
"open": 65736.4,
"vwap": 65702.5907,
"close": 65592.8,
"trades": 1194,
"volume": 6931800,
"timestamp": "2026-06-15T08:00:00.000Z"
},
{
"low": 65700.1,
"high": 65899,
"open": 65787.8,
"vwap": 65800.7291,
"close": 65736.4,
"trades": 898,
"volume": 4158500,
"timestamp": "2026-06-15T07:00:00.000Z"
},
{
"low": 65540,
"high": 65804.7,
"open": 65573.9,
"vwap": 65653.4156,
"close": 65787.8,
"trades": 788,
"volume": 3458500,
"timestamp": "2026-06-15T06:00:00.000Z"
},
{
"low": 65560.1,
"high": 65858.4,
"open": 65855.2,
"vwap": 65654.2777,
"close": 65573.9,
"trades": 839,
"volume": 2722600,
"timestamp": "2026-06-15T05:00:00.000Z"
},
{
"low": 65361.2,
"high": 65941.9,
"open": 65397.1,
"vwap": 65737.5756,
"close": 65855.2,
"trades": 1474,
"volume": 8917500,
"timestamp": "2026-06-15T04:00:00.000Z"
},
{
"low": 65350.1,
"high": 65710.5,
"open": 65446.2,
"vwap": 65529.0818,
"close": 65397.1,
"trades": 1002,
"volume": 3136900,
"timestamp": "2026-06-15T03:00:00.000Z"
},
{
"low": 65279.1
…