/v1/orderbook
Live order book for a market
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
curl "https://api.oanor.com/lighter-api/v1/orderbook" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/lighter-api/v1/orderbook", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/lighter-api/v1/orderbook");
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/lighter-api/v1/orderbook",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"asks": [
{
"size": 0.0002,
"price": 65930.6
},
{
"size": 0.29434,
"price": 65935.5
},
{
"size": 0.19636,
"price": 65935.6
},
{
"size": 0.00758,
"price": 65936
},
{
"size": 0.00379,
"price": 65936.4
},
{
"size": 0.03491,
"price": 65936.5
},
{
"size": 0.04743,
"price": 65936.5
},
{
"size": 0.05,
"price": 65936.6
},
{
"size": 0.05,
"price": 65936.8
},
{
"size": 0.29434,
"price": 65937
}
],
"bids": [
{
"size": 0.18617,
"price": 65929.4
},
{
"size": 0.32447,
"price": 65929.3
},
{
"size": 0.31211,
"price": 65928.6
},
{
"size": 0.10413,
"price": 65928.5
},
{
"size": 0.00758,
"price": 65928.2
},
{
"size": 0.18263,
"price": 65928.1
},
{
"size": 0.00379,
"price": 65928
},
{
"size": 0.31165,
"price": 65928
},
{
"size": 0.00758,
"price": 65927.7
},
{
"size": 0.00757,
"price": 65927.7
}
],
"symbol": "BTC",
"market_id": 1
},
"meta": {
"timestamp": "2026-06-15T11:15:56.859Z",
"request_id": "2ff62d4f-262e-4514-a95b-4b08d98f0bcd"
},
"status": "ok",
"message": "Order book retrieved successfully",
"success": true
}