Vai al contenuto
GET /v1/book

Live order-book depth with running spread

Provalo dal vivo

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

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

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

Ottieni una chiave API

Frammenti di codice

curl "https://api.oanor.com/coinsph-api/v1/book" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/coinsph-api/v1/book", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/coinsph-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/coinsph-api/v1/book",
    headers={"x-oanor-key": "oanor_test_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "asks": [
            {
                "price": 3854158.1,
                "amount": 0.1599904
            },
            {
                "price": 3854158.2,
                "amount": 3.87e-5
            },
            {
                "price": 3857771.5,
                "amount": 0.022
            },
            {
                "price": 3858620,
                "amount": 2.45e-5
            },
            {
                "price": 3861144,
                "amount": 0.0115237
            },
            {
                "price": 3861144.1,
                "amount": 1.94e-5
            },
            {
                "price": 3862423.5,
                "amount": 1.94e-5
            },
            {
                "price": 3864176.3,
                "amount": 1.94e-5
            },
            {
                "price": 3865624.9,
                "amount": 0.3201999
            },
            {
                "price": 3866055.2,
                "amount": 1.94e-5
            },
            {
                "price": 3866175.8,
                "amount": 1.94e-5
            },
            {
                "price": 3867344.8,
                "amount": 1.94e-5
            },
            {
                "price": 3868131.3,
                "amount": 1.94e-5
            },
            {
                "price": 3870000,
                "amount": 0.0002603
            },
            {
                "price": 3870438.1,
                "amount": 0.0177937
            },
            {
                "price": 3870649,
                "amount": 0.0177937
            },
            {
                "price": 3870774.9,
                "amount": 0.0177937
            },
            {
                "price": 3870821.5,
                "amount": 0.0177937
            },
            {
                "price": 3870876.7,
                "amount": 0.0177937
            },
            {
                "price": 3871505.9,
                "amount": 0.0177937
            }
        ],
        "bids": [
            {
                "price": 3851047.7,
                "amount": 0.1196163
            },
            {
                "price": 3843423,
                "amount": 0.0094599
            },
            {
                "price": 3842789.4,
                "amount": 1.94e-5
            },
            {
                "price": 3842140.8,
                "amount": 2.73e-5
            },
            {
                "price": 3841928.5,
                "amount": 1.94e-5
            },
            {
                "price": 3841428,
                "amount": 1.94e-5
            },
            {
                "price": 3838659.8,
                "amount": 0.3647
            },
            {
                "price": 3838232,
                "amount": 1.94e-5
            },
            {
                "price": 3837514.2,
                "amount": 1.94e-5
            },
            {
                "price": 3834260.7,
          
…