/v1/orderbook
Order-book depth for a symbol
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/phemex-api/v1/orderbook" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/phemex-api/v1/orderbook", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/phemex-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/phemex-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": [
{
"qty": 0.878,
"price": 65891.5
},
{
"qty": 0.04,
"price": 65891.6
},
{
"qty": 0.001,
"price": 65891.8
},
{
"qty": 0.002,
"price": 65892.5
},
{
"qty": 0.002,
"price": 65897.3
},
{
"qty": 0.303,
"price": 65898.5
},
{
"qty": 0.464,
"price": 65898.6
},
{
"qty": 0.341,
"price": 65899.6
},
{
"qty": 0.028,
"price": 65906.2
},
{
"qty": 0.001,
"price": 65914
},
{
"qty": 0.447,
"price": 65919.4
},
{
"qty": 0.239,
"price": 65919.9
},
{
"qty": 0.182,
"price": 65920
},
{
"qty": 0.392,
"price": 65920.1
},
{
"qty": 0.007,
"price": 65927.8
},
{
"qty": 0.669,
"price": 65927.9
},
{
"qty": 0.675,
"price": 65928.1
},
{
"qty": 0.252,
"price": 65930.5
},
{
"qty": 0.001,
"price": 65935.9
},
{
"qty": 0.001,
"price": 65936
},
{
"qty": 0.151,
"price": 65942
},
{
"qty": 2.616,
"price": 65942.1
},
{
"qty": 0.239,
"price": 65943.4
},
{
"qty": 2.884,
"price": 65946.3
},
{
"qty": 2.173,
"price": 65949.3
},
{
"qty": 0.001,
"price": 65950
},
{
"qty": 0.744,
"price": 65951.5
},
{
"qty": 2.551,
"price": 65952
},
{
"qty": 0.167,
"price": 65952.1
},
{
"qty": 3.347,
"price": 65955
}
],
"bids": [
{
"qty": 2.061,
"price": 65891.4
},
{
"qty": 0.182,
"price": 65889.2
},
…