/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/btse-api/v1/book" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/btse-api/v1/book", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/btse-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/btse-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": 62588.9,
"amount": 0.004
},
{
"price": 62589,
"amount": 0.017
},
{
"price": 62589.1,
"amount": 0.0955
},
{
"price": 62589.2,
"amount": 0.059
},
{
"price": 62589.3,
"amount": 0.2015
},
{
"price": 62589.4,
"amount": 0.1025
},
{
"price": 62589.5,
"amount": 0.074
},
{
"price": 62589.6,
"amount": 0.0609
},
{
"price": 62589.7,
"amount": 0.183
},
{
"price": 62589.8,
"amount": 0.169
},
{
"price": 62589.9,
"amount": 0.1242
},
{
"price": 62590,
"amount": 0.0435
},
{
"price": 62590.1,
"amount": 0.097
},
{
"price": 62590.2,
"amount": 0.0445
},
{
"price": 62590.5,
"amount": 0.0895
},
{
"price": 62590.6,
"amount": 0.013
},
{
"price": 62590.7,
"amount": 0.071
},
{
"price": 62590.8,
"amount": 0.099
},
{
"price": 62590.9,
"amount": 0.057
},
{
"price": 62591,
"amount": 0.0565
}
],
"bids": [
{
"price": 62588.7,
"amount": 0.00775
},
{
"price": 62588.6,
"amount": 0.0195
},
{
"price": 62588.5,
"amount": 0.032
},
{
"price": 62588.4,
"amount": 0.04
},
{
"price": 62588.3,
"amount": 0.0485
},
{
"price": 62588.2,
"amount": 0.028
},
{
"price": 62588.1,
"amount": 0.034
},
{
"price": 62588,
"amount": 0.0745
},
{
"price": 62587.9,
"amount": 0.089
},
{
"price": 62587.8,
"amount": 0.0445
},
{
"price": 62587.7,
"amount": 0.105
…