/v1/orderbook
Live order book — best bid/ask, spread, top depth
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/dydx-api/v1/orderbook" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dydx-api/v1/orderbook", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dydx-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/dydx-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": 0.0727,
"price": 61421
},
{
"size": 0.0409,
"price": 61422
},
{
"size": 0.137,
"price": 61423
},
{
"size": 0.0318,
"price": 61428
},
{
"size": 0.0318,
"price": 61430
},
{
"size": 0.0318,
"price": 61434
},
{
"size": 0.0318,
"price": 61437
},
{
"size": 0.1538,
"price": 61439
},
{
"size": 0.3255,
"price": 61440
},
{
"size": 0.017,
"price": 61441
}
],
"bids": [
{
"size": 0.3256,
"price": 61416
},
{
"size": 0.1221,
"price": 61412
},
{
"size": 0.0459,
"price": 61410
},
{
"size": 0.0318,
"price": 61408
},
{
"size": 0.0237,
"price": 61407
},
{
"size": 0.0318,
"price": 61406
},
{
"size": 0.025,
"price": 61405
},
{
"size": 0.0318,
"price": 61404
},
{
"size": 0.0443,
"price": 61403
},
{
"size": 0.6514,
"price": 61402
}
],
"source": "dYdX",
"spread": 5,
"ticker": "BTC-USD",
"best_ask": 61421,
"best_bid": 61416,
"mid_price": 61418.5,
"ask_depth_total": 1308.927,
"bid_depth_total": 1248.4236
},
"meta": {
"timestamp": "2026-06-10T22:57:57.115Z",
"request_id": "52c76438-9fc6-4153-8cb9-e6b53c4a79a1"
},
"status": "ok",
"message": "Orderbook retrieved successfully",
"success": true
}