/v1/orderbook
Live limit-order book with depth
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/bit2c-api/v1/orderbook" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bit2c-api/v1/orderbook", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bit2c-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/bit2c-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": [
{
"price": 193648.11,
"amount": 0.23872756
},
{
"price": 193650.02,
"amount": 0.10092175
},
{
"price": 193745.14,
"amount": 0.93164101
},
{
"price": 193792.09,
"amount": 0.34364101
},
{
"price": 193850.12,
"amount": 0.23872756
},
{
"price": 193851.07,
"amount": 0.10092175
},
{
"price": 194051.13,
"amount": 0.92464101
},
{
"price": 194244.56,
"amount": 0.92964101
},
{
"price": 194252.59,
"amount": 0.34864101
},
{
"price": 194446.2,
"amount": 0.33764101
},
{
"price": 196009.13,
"amount": 0.02342
},
{
"price": 209800,
"amount": 1.46925433
},
{
"price": 210000,
"amount": 0.03333333
},
{
"price": 210700,
"amount": 0.12627666
},
{
"price": 217000,
"amount": 0.01030301
},
{
"price": 222222.22,
"amount": 0.00199998
},
{
"price": 235000,
"amount": 4.13817953
},
{
"price": 240000,
"amount": 0.05
},
{
"price": 243600,
"amount": 0.44487681
},
{
"price": 244568,
"amount": 0.00022309
}
],
"bids": [
{
"price": 186987.65,
"amount": 0.24554261
},
{
"price": 186788.71,
"amount": 0.24554261
},
{
"price": 186218,
"amount": 0.05303753
},
{
"price": 186097.32,
"amount": 0.65042518
},
{
"price": 186072.26,
"amount": 0.32521259
},
{
"price": 186039.23,
"amount": 0.30364101
},
{
"price": 186039.22,
"amount": 0.86764101
},
{
"price": 185992.75,
"amount": 0.30564101
},
{
"price": 185992.74,
"amount": 0.86764101
},
{
…