Vai al contenuto
GET /v1/orderbook

Live market depth — best bid/ask and spread

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/btcturk-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/btcturk-api/v1/orderbook" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/btcturk-api/v1/orderbook", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/btcturk-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/btcturk-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": 2893585,
                "amount": 0.00566
            },
            {
                "price": 2893586,
                "amount": 0.0069127
            },
            {
                "price": 2894069,
                "amount": 0.02592211
            },
            {
                "price": 2894246,
                "amount": 0.0478052
            },
            {
                "price": 2894247,
                "amount": 0.02932958
            },
            {
                "price": 2894370,
                "amount": 0.0241842
            },
            {
                "price": 2895019,
                "amount": 0.00345421
            },
            {
                "price": 2895100,
                "amount": 0.10880453
            },
            {
                "price": 2895220,
                "amount": 0.01208889
            },
            {
                "price": 2895266,
                "amount": 0.1530285
            },
            {
                "price": 2895268,
                "amount": 0.00887278
            },
            {
                "price": 2896066,
                "amount": 0.00486984
            },
            {
                "price": 2896999,
                "amount": 0.12945413
            },
            {
                "price": 2897000,
                "amount": 0.05631584
            },
            {
                "price": 2897219,
                "amount": 0.05619893
            },
            {
                "price": 2898000,
                "amount": 0.1
            },
            {
                "price": 2898888,
                "amount": 0.0276299
            },
            {
                "price": 2899000,
                "amount": 0.1
            },
            {
                "price": 2899020,
                "amount": 0.0389321
            },
            {
                "price": 2899330,
                "amount": 0.00651556
            }
        ],
        "bids": [
            {
                "price": 2892170,
                "amount": 0.00757325
            },
            {
                "price": 2892126,
                "amount": 0.02932958
            },
            {
                "price": 2892125,
                "amount": 0.15644446
            },
            {
                "price": 2892124,
                "amount": 0.00691273
            },
            {
                "price": 2892042,
                "amount": 0.02932958
            },
            {
                "price": 2891741,
                "amount": 0.02056
            },
            {
                "price": 2891740,
                "amount": 0.01109625
            },
            {
                "price": 2891637,
                "amount": 0.02592211
            },
            {
                "price": 2891248,
                "amount": 0.39517759
            },
            {
                "price": 2891078,
                
…