Naar de inhoud
GET /v1/orderbook

Live order book for a pair (bids/asks, best bid/ask, mid, spread)

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/stellardex-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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,
 
…