/v1/book
Live order-book depth with running spread
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/valr-api/v1/book" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/valr-api/v1/book", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/valr-api/v1/book");
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/valr-api/v1/book",
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": [
{
"price": 1042478,
"amount": 0.036
},
{
"price": 1042479,
"amount": 0.18239517
},
{
"price": 1042480,
"amount": 0.7682639
},
{
"price": 1042549,
"amount": 0.0175
},
{
"price": 1042859,
"amount": 0.12717826
},
{
"price": 1042860,
"amount": 0.24006706
},
{
"price": 1043526,
"amount": 0.15
},
{
"price": 1043575,
"amount": 0.13
},
{
"price": 1043979,
"amount": 0.24006707
},
{
"price": 1044094,
"amount": 0.2688
},
{
"price": 1045000,
"amount": 0.59854054
},
{
"price": 1045180,
"amount": 0.122
},
{
"price": 1045181,
"amount": 0.5611
},
{
"price": 1045703,
"amount": 0.48011588
},
{
"price": 1045903,
"amount": 0.09602318
},
{
"price": 1047500,
"amount": 0.39061003
},
{
"price": 1050000,
"amount": 0.0009822
},
{
"price": 1052193,
"amount": 0.0001
},
{
"price": 1053526,
"amount": 0.0001
},
{
"price": 1054099,
"amount": 0.00131965
}
],
"bids": [
{
"price": 1041901,
"amount": 0.01750175
},
{
"price": 1041900,
"amount": 0.39209532
},
{
"price": 1041898,
"amount": 0.12729557
},
{
"price": 1041577,
"amount": 0.0912
},
{
"price": 1041377,
"amount": 0.4583
},
{
"price": 1041037,
"amount": 0.02575
},
{
"price": 1041013,
"amount": 0.05
},
{
"price": 1040859,
"amount": 0.1248
},
{
"price": 1040533,
"amount": 0.76816715
},
{
"price": 1040521,
"amount": 0.45272124
},
…