Skip to content
GET /v1/orderbook

Top of order book

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/bitstamp-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "asks": [
            {
                "price": 62531.32,
                "amount": 0.32995768
            },
            {
                "price": 62532.99,
                "amount": 0.5
            },
            {
                "price": 62533.07,
                "amount": 0.1094123
            },
            {
                "price": 62533.08,
                "amount": 2.16300233
            },
            {
                "price": 62533.61,
                "amount": 0.07995701
            },
            {
                "price": 62534.27,
                "amount": 0.23983791
            },
            {
                "price": 62535.29,
                "amount": 0.07995486
            },
            {
                "price": 62536.28,
                "amount": 0.01599134
            },
            {
                "price": 62537.4,
                "amount": 0.23983791
            },
            {
                "price": 62537.94,
                "amount": 0.39975734
            }
        ],
        "bids": [
            {
                "price": 62531.31,
                "amount": 0.75391987
            },
            {
                "price": 62530.01,
                "amount": 0.33542449
            },
            {
                "price": 62530,
                "amount": 0.0799616
            },
            {
                "price": 62529.94,
                "amount": 0.07994664
            },
            {
                "price": 62529.85,
                "amount": 0.25
            },
            {
                "price": 62528.74,
                "amount": 0.39981612
            },
            {
                "price": 62528.72,
                "amount": 0.23983791
            },
            {
                "price": 62526.73,
                "amount": 0.5
            },
            {
                "price": 62526.69,
                "amount": 0.39982919
            },
            {
                "price": 62524.04,
                "amount": 0.01599134
            }
        ],
        "pair": "BTCUSD",
        "source": "Bitstamp",
        "spread": 0.01,
        "best_ask": 62531.32,
        "best_bid": 62531.31,
        "timestamp": 1781005104,
        "spread_pct": 0
    },
    "meta": {
        "timestamp": "2026-06-09T11:38:25.424Z",
        "request_id": "dfad2c26-c945-4c47-9843-caf3b0f15402"
    },
    "status": "ok",
    "message": "Order book retrieved successfully",
    "success": true
}