/v1/orderbook
Live L2 order book (bids/asks)
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/bitmex-api/v1/orderbook" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/bitmex-api/v1/orderbook", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/bitmex-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/bitmex-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": [
{
"size": 1000,
"price": 65898.5
},
{
"size": 100,
"price": 65900
},
{
"size": 1000,
"price": 65903
},
{
"size": 800,
"price": 65903.8
},
{
"size": 800,
"price": 65904.4
},
{
"size": 1200,
"price": 65906.8
},
{
"size": 1300,
"price": 65907.8
},
{
"size": 17600,
"price": 65909.8
},
{
"size": 4400,
"price": 65910.3
},
{
"size": 149900,
"price": 65910.4
}
],
"bids": [
{
"size": 600,
"price": 65898.4
},
{
"size": 1600,
"price": 65898
},
{
"size": 5000,
"price": 65897.9
},
{
"size": 400,
"price": 65895
},
{
"size": 18100,
"price": 65888.3
},
{
"size": 12200,
"price": 65888.2
},
{
"size": 29800,
"price": 65888.1
},
{
"size": 4200,
"price": 65888
},
{
"size": 2700,
"price": 65887.9
},
{
"size": 6000,
"price": 65887.6
}
],
"symbol": "XBTUSD"
},
"meta": {
"timestamp": "2026-06-15T11:15:40.266Z",
"request_id": "0d8fb15e-e098-4fd1-9b6a-505f1414701f"
},
"status": "ok",
"message": "Order book retrieved successfully",
"success": true
}