/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/btcmarkets-api/v1/book" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/btcmarkets-api/v1/book", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/btcmarkets-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/btcmarkets-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": 89515.91,
"amount": 0.111
},
{
"price": 89515.98,
"amount": 0.17166582
},
{
"price": 89516,
"amount": 0.01
},
{
"price": 89535.04,
"amount": 0.0302
},
{
"price": 89592.28,
"amount": 0.2573
},
{
"price": 89592.29,
"amount": 0.112317
},
{
"price": 89592.33,
"amount": 0.09
},
{
"price": 89607.03,
"amount": 0.111
},
{
"price": 89607.04,
"amount": 0.0151
},
{
"price": 89620.32,
"amount": 0.0774
},
{
"price": 89696,
"amount": 0.01
},
{
"price": 89727.57,
"amount": 0.08
},
{
"price": 89727.58,
"amount": 0.0528
},
{
"price": 89737.07,
"amount": 0.0774
},
{
"price": 89846.74,
"amount": 0.04968075
},
{
"price": 89846.75,
"amount": 0.18168
},
{
"price": 89904.56,
"amount": 0.09018465
},
{
"price": 89911.98,
"amount": 0.65555
},
{
"price": 89925,
"amount": 0.01
},
{
"price": 90000,
"amount": 1
}
],
"bids": [
{
"price": 89429.16,
"amount": 0.05
},
{
"price": 89429.15,
"amount": 0.08
},
{
"price": 89429,
"amount": 0.01
},
{
"price": 89389.67,
"amount": 0.60136095
},
{
"price": 89389.66,
"amount": 0.0774
},
{
"price": 89318.2,
"amount": 0.09
},
{
"price": 89318.19,
"amount": 0.2573
},
{
"price": 89318.16,
"amount": 0.24013
},
{
"price": 89317.62,
"amount": 0.0774
},
{
"price": 89300,
"amount": 0.22207652
},
{
"price": 89249.01
…