/v1/book
Live order-book depth with running spread
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/p2b-api/v1/book" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/p2b-api/v1/book", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/p2b-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/p2b-api/v1/book",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"asks": [
{
"price": 1654.08,
"amount": 12.8372
},
{
"price": 1654.13,
"amount": 11.9086
},
{
"price": 1654.24,
"amount": 9.956
},
{
"price": 1654.32,
"amount": 9.2752
},
{
"price": 1654.38,
"amount": 7.5578
},
{
"price": 1654.42,
"amount": 13.3133
},
{
"price": 1654.5,
"amount": 9.4647
},
{
"price": 1654.63,
"amount": 7.949
},
{
"price": 1654.67,
"amount": 11.22
},
{
"price": 1654.83,
"amount": 8.0527
},
{
"price": 1654.88,
"amount": 8.1744
},
{
"price": 1654.92,
"amount": 11.6932
},
{
"price": 1655.05,
"amount": 10.3357
},
{
"price": 1655.13,
"amount": 11.342
},
{
"price": 1655.24,
"amount": 8.5415
},
{
"price": 1655.32,
"amount": 7.5285
},
{
"price": 1655.37,
"amount": 9.2065
},
{
"price": 1655.42,
"amount": 9.5353
},
{
"price": 1655.54,
"amount": 7.7214
},
{
"price": 1655.62,
"amount": 7.5509
}
],
"bids": [
{
"price": 1654.07,
"amount": 9.3765
},
{
"price": 1653.99,
"amount": 11.9187
},
{
"price": 1653.94,
"amount": 11.3909
},
{
"price": 1653.89,
"amount": 10.7095
},
{
"price": 1653.78,
"amount": 11.5677
},
{
"price": 1653.7,
"amount": 11.6194
},
{
"price": 1653.61,
"amount": 9.1311
},
{
"price": 1653.56,
"amount": 8.1459
},
{
"price": 1653.48,
"amount": 10.4296
},
{
"price": 1653.4,
"amount": 10.2034
},
{
"price": 1653.29,
…