/v1/book
Live order-book depth
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/whitebit-api/v1/book" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/whitebit-api/v1/book", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/whitebit-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/whitebit-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": 62728.32,
"amount": 0.016749
},
{
"price": 62730.15,
"amount": 0.017323
},
{
"price": 62733.17,
"amount": 0.028692
},
{
"price": 62735.9,
"amount": 0.003187
},
{
"price": 62738.17,
"amount": 0.036559
},
{
"price": 62739.84,
"amount": 0.055307
},
{
"price": 62741.43,
"amount": 0.01417
},
{
"price": 62741.48,
"amount": 0.00797
},
{
"price": 62741.52,
"amount": 0.098794
},
{
"price": 62743.19,
"amount": 0.153699
},
{
"price": 62744.86,
"amount": 0.140286
},
{
"price": 62746.54,
"amount": 0.202545
},
{
"price": 62748.21,
"amount": 0.238741
},
{
"price": 62749.89,
"amount": 0.14188
},
{
"price": 62750.77,
"amount": 0.12639
},
{
"price": 62751.56,
"amount": 0.312236
},
{
"price": 62753.23,
"amount": 0.233556
},
{
"price": 62754.91,
"amount": 0.303382
},
{
"price": 62756.58,
"amount": 0.354685
},
{
"price": 62758.26,
"amount": 0.222527
}
],
"bids": [
{
"price": 62728.31,
"amount": 0.016749
},
{
"price": 62723.86,
"amount": 0.003188
},
{
"price": 62719.75,
"amount": 0.024876
},
{
"price": 62719.71,
"amount": 0.028699
},
{
"price": 62718.08,
"amount": 0.06084
},
{
"price": 62716.4,
"amount": 0.09396
},
{
"price": 62716.34,
"amount": 0.014707
},
{
"price": 62714.73,
"amount": 0.152487
},
{
"price": 62713.06,
"amount": 0.147886
},
{
"price": 62711.38,
"amount":
…