/v1/orderbook
Live order book for a pair (bids/asks, best bid/ask, mid, spread)
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/stellardex-api/v1/orderbook" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/stellardex-api/v1/orderbook", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/stellardex-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/stellardex-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": 0.186428,
"amount": 4476.9567818
},
{
"price": 0.1864281,
"amount": 4759.1384341
},
{
"price": 0.1865438,
"amount": 5000
},
{
"price": 0.1865458,
"amount": 5000
},
{
"price": 0.18655239,
"amount": 8000
},
{
"price": 0.18662528611755896,
"amount": 226.8538417
},
{
"price": 0.18665489000000002,
"amount": 5000
},
{
"price": 0.1866549,
"amount": 1000
},
{
"price": 0.18670004863536266,
"amount": 219.7724838
},
{
"price": 0.18674819,
"amount": 2400
},
{
"price": 0.1867482,
"amount": 1000
},
{
"price": 0.18684139,
"amount": 1600
},
{
"price": 0.1868414,
"amount": 1000
},
{
"price": 0.1869346,
"amount": 1000
},
{
"price": 0.18699928603672591,
"amount": 226.8538405
},
{
"price": 0.1870452,
"amount": 26.8384322
},
{
"price": 0.1870666,
"amount": 26.8353598
},
{
"price": 0.18707419807932418,
"amount": 219.772483
},
{
"price": 0.1871455,
"amount": 3.5288784
},
{
"price": 0.1871456,
"amount": 1.7426758
}
],
"bids": [
{
"price": 0.18621516193642912,
"amount": 0.1977219
},
{
"price": 0.18614078717486998,
"amount": 1.5186144
},
{
"price": 0.18613701,
"amount": 0.235806
},
{
"price": 0.1861358,
"amount": 930.679
},
{
"price": 0.18613388547096404,
"amount": 562.8113524
},
{
"price": 0.1861338,
"amount": 930.6689999
},
{
"price": 0.186039,
"amount": 524.62998
},
{
"price": 0.1859677,
"amount": 900.6569523
},
{
"price": 0.1859607205955608,
…