/v1/book
Live order-book depth
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/bingx-api/v1/book" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bingx-api/v1/book", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bingx-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/bingx-api/v1/book",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"asks": [
{
"price": 62714.01,
"amount": 0.00702
},
{
"price": 62716.7,
"amount": 3.245687
},
{
"price": 62716.71,
"amount": 0.464389
},
{
"price": 62716.72,
"amount": 0.00013
},
{
"price": 62716.96,
"amount": 0.003394
},
{
"price": 62717.58,
"amount": 0.002688
},
{
"price": 62718.17,
"amount": 0.000151
},
{
"price": 62718.18,
"amount": 0.040551
},
{
"price": 62718.53,
"amount": 0.006172
},
{
"price": 62719.23,
"amount": 0.432655
},
{
"price": 62719.37,
"amount": 0.000203
},
{
"price": 62719.38,
"amount": 0.180009
},
{
"price": 62719.78,
"amount": 0.026882
},
{
"price": 62719.79,
"amount": 0.064754
},
{
"price": 62719.84,
"amount": 8.0e-5
},
{
"price": 62719.85,
"amount": 0.239904
},
{
"price": 62719.86,
"amount": 0.000161
},
{
"price": 62719.88,
"amount": 0.523198
},
{
"price": 62719.89,
"amount": 0.081512
},
{
"price": 62720.1,
"amount": 0.003629
}
],
"bids": [
{
"price": 62714,
"amount": 0.001817
},
{
"price": 62711.31,
"amount": 0.145388
},
{
"price": 62710.89,
"amount": 0.000808
},
{
"price": 62710.8,
"amount": 0.000147
},
{
"price": 62710.79,
"amount": 0.017981
},
{
"price": 62710.26,
"amount": 0.002022
},
{
"price": 62710.14,
"amount": 0.000474
},
{
"price": 62710.01,
"amount": 7.2e-5
},
{
"price": 62709.3,
"amount": 7.2e-5
},
{
"price": 62708.91,
"amount": 7.4e-5
…