/v1/depth
Live order book for a contract
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/edgex-api/v1/depth" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/edgex-api/v1/depth", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/edgex-api/v1/depth");
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/edgex-api/v1/depth",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"asks": [
{
"size": 0.51,
"price": 1741.41
},
{
"size": 0.29,
"price": 1741.48
},
{
"size": 482.76,
"price": 1741.55
},
{
"size": 154.51,
"price": 1741.59
},
{
"size": 146.09,
"price": 1741.66
},
{
"size": 144.67,
"price": 1741.7
},
{
"size": 0.23,
"price": 1741.75
},
{
"size": 418.48,
"price": 1741.79
},
{
"size": 193.94,
"price": 1741.86
},
{
"size": 123.46,
"price": 1741.93
},
{
"size": 79.37,
"price": 1741.97
},
{
"size": 254.82,
"price": 1742.02
},
{
"size": 0.52,
"price": 1742.09
},
{
"size": 76.63,
"price": 1742.13
},
{
"size": 73.58,
"price": 1742.2
}
],
"bids": [
{
"size": 345.97,
"price": 1741.25
},
{
"size": 1.5,
"price": 1741.23
},
{
"size": 1.56,
"price": 1741.22
},
{
"size": 248.7,
"price": 1741.18
},
{
"size": 0.93,
"price": 1741.12
},
{
"size": 273.43,
"price": 1741.05
},
{
"size": 861.47,
"price": 1741.01
},
{
"size": 333.1,
"price": 1740.95
},
{
"size": 210.44,
"price": 1740.9
},
{
"size": 222.64,
"price": 1740.86
},
{
"size": 277.12,
"price": 1740.82
},
{
"size": 854.28,
"price": 1740.78
},
{
"size": 223.43,
"price": 1740.71
},
{
"size": 249.24,
"price": 1740.66
},
{
"size": 0.29,
"price": 1740.62
}
],
"name": "ETHUSD",
"level": 15,
"contract_id": "10000002"
},
"meta": {
"timestamp": "2026-06-1
…