/v1/orderbook
Live market depth — best bid/ask and spread
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/mercadobitcoin-api/v1/orderbook" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/mercadobitcoin-api/v1/orderbook", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/mercadobitcoin-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/mercadobitcoin-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": 325149,
"amount": 0.03138635
},
{
"price": 325225,
"amount": 0.0790361
},
{
"price": 325226,
"amount": 0.0615591
},
{
"price": 325281,
"amount": 1.02022339
},
{
"price": 325285,
"amount": 0.079
},
{
"price": 325441,
"amount": 0.01
},
{
"price": 325578,
"amount": 0.03225
},
{
"price": 325623,
"amount": 0.06909
},
{
"price": 325637,
"amount": 0.01842
},
{
"price": 325641,
"amount": 0.00921
},
{
"price": 325835,
"amount": 0.2117
},
{
"price": 325836,
"amount": 0.4436
},
{
"price": 325885,
"amount": 0.0992
},
{
"price": 325974,
"amount": 0.1456
},
{
"price": 326692,
"amount": 0.02546708
},
{
"price": 326693,
"amount": 0.292
},
{
"price": 327000,
"amount": 0.00030581
},
{
"price": 327248,
"amount": 0.00031765
},
{
"price": 327849,
"amount": 0.65971
},
{
"price": 327850,
"amount": 0.038
}
],
"bids": [
{
"price": 324942,
"amount": 0.00440514
},
{
"price": 324941,
"amount": 0.0706
},
{
"price": 324928,
"amount": 0.06163692
},
{
"price": 324887,
"amount": 0.00693319
},
{
"price": 324830,
"amount": 0.03138303
},
{
"price": 324729,
"amount": 0.01
},
{
"price": 324607,
"amount": 0.0123
},
{
"price": 324576,
"amount": 0.00615
},
{
"price": 324553,
"amount": 0.02154
},
{
"price": 324498,
"amount": 0.92316
},
{
"price": 324497
…