Ir al contenido
GET /v1/candles

OHLC candles

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/blofin-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/blofin-api/v1/candles" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/blofin-api/v1/candles", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/blofin-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/blofin-api/v1/candles",
    headers={"x-oanor-key": "oanor_test_..."}
)

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "data": {
        "bar": "1H",
        "count": 100,
        "candles": [
            {
                "low": 65810.3,
                "high": 65984.7,
                "open": 65876.1,
                "close": 65911.1,
                "volume": 60082,
                "timestamp": "1781521200000",
                "volume_currency": 60.0824
            },
            {
                "low": 65545.2,
                "high": 65930,
                "open": 65559.9,
                "close": 65884.7,
                "volume": 69932,
                "timestamp": "1781517600000",
                "volume_currency": 69.9329
            },
            {
                "low": 65467.1,
                "high": 65737.5,
                "open": 65620,
                "close": 65559.8,
                "volume": 139236,
                "timestamp": "1781514000000",
                "volume_currency": 139.2366
            },
            {
                "low": 65580.4,
                "high": 65763.7,
                "open": 65642.4,
                "close": 65620,
                "volume": 74913,
                "timestamp": "1781510400000",
                "volume_currency": 74.9139
            },
            {
                "low": 65605.2,
                "high": 65975,
                "open": 65783.4,
                "close": 65642.4,
                "volume": 155111,
                "timestamp": "1781506800000",
                "volume_currency": 155.1111
            },
            {
                "low": 65738.4,
                "high": 65935.5,
                "open": 65831.6,
                "close": 65783.4,
                "volume": 120202,
                "timestamp": "1781503200000",
                "volume_currency": 120.2025
            },
            {
                "low": 65577.8,
                "high": 65840.9,
                "open": 65612.1,
                "close": 65829.8,
                "volume": 115396,
                "timestamp": "1781499600000",
                "volume_currency": 115.3966
            },
            {
                "low": 65601.8,
                "high": 65885,
                "open": 65884.2,
                "close": 65612.1,
                "volume": 108902,
                "timestamp": "1781496000000",
                "volume_currency": 108.9028
            },
            {
                "low": 65401.3,
                "high": 65994.4,
                "open": 65424.9,
                "close": 65882.4,
                "volume": 256068,
                "timestamp": "1781492400000",
                "volume_currency": 256.0682
            },
            {
                "low": 65383.6,
                "high": 65749.2,
                "open": 65475,
                "close": 65425.1,
                "volume": 97188,
                "timestamp": "1781488800000",
                "volume_currency": 97.1882
            },
            {
                "low": 65316.2,
                "high": 65705.9,
           
…