curl --request GET \
--url https://api.sandbox.busha.so/v1/exchange/markets/{symbol}/order_book \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandbox.busha.so/v1/exchange/markets/{symbol}/order_book"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandbox.busha.so/v1/exchange/markets/{symbol}/order_book', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.busha.so/v1/exchange/markets/{symbol}/order_book",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.busha.so/v1/exchange/markets/{symbol}/order_book"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.busha.so/v1/exchange/markets/{symbol}/order_book")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.busha.so/v1/exchange/markets/{symbol}/order_book")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Order book retrieved",
"data": {
"sequence": 90114627,
"bids": [
[
"1371.50",
"4200.00"
],
[
"1371.20",
"6150.00"
],
[
"1370.85",
"11800.00"
],
[
"1370.40",
"9300.00"
],
[
"1369.95",
"22450.00"
]
],
"asks": [
[
"1372.30",
"3100.00"
],
[
"1372.65",
"5400.00"
],
[
"1373.10",
"10250.00"
],
[
"1373.70",
"8800.00"
],
[
"1374.25",
"19600.00"
]
],
"time": "2026-09-06T12:00:00.482Z"
}
}Get an order book snapshot
Aggregated depth for one market: bids best first and descending, asks best first and ascending, each level the positional pair [price, quantity], both decimal strings. The quantity is the total resting size at that price, not one order’s.
sequence is the book’s revision: the market’s own order sequence, read in the same database snapshot as the levels, so it dates them. It only ever moves forward, so two snapshots can be ordered by it — but it counts accepted orders, not book changes, so a cancellation or a fill can change the depth without moving it and a step of more than one is not a gap. Do not use it to decide whether the book has changed; compare the ETag, which is derived from the levels themselves and therefore moves whenever they do. A conditional re-read with If-None-Match answers 304 only when the depth served is byte-for-byte what the client already holds.
This endpoint is not part of stream synchronisation. A client keeping a live book subscribes to order_book and joins on the snapshot the stream itself sends in band as its first message; there is no window between the two to reason about and nothing to fetch first. This read is for clients that want depth without holding a socket open. The procedure and the sequencing rules belong to the stream protocol.
depth names how many levels a side returns and must be one of 1, 5, 10, 20, 50, 100 or 500; omitting it returns 50. The depth is aggregated from the resting orders themselves: an order past its own expiry is not liquidity and is left out, because a taker could not have hit it.
curl --request GET \
--url https://api.sandbox.busha.so/v1/exchange/markets/{symbol}/order_book \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandbox.busha.so/v1/exchange/markets/{symbol}/order_book"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandbox.busha.so/v1/exchange/markets/{symbol}/order_book', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sandbox.busha.so/v1/exchange/markets/{symbol}/order_book",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.sandbox.busha.so/v1/exchange/markets/{symbol}/order_book"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.sandbox.busha.so/v1/exchange/markets/{symbol}/order_book")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.busha.so/v1/exchange/markets/{symbol}/order_book")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Order book retrieved",
"data": {
"sequence": 90114627,
"bids": [
[
"1371.50",
"4200.00"
],
[
"1371.20",
"6150.00"
],
[
"1370.85",
"11800.00"
],
[
"1370.40",
"9300.00"
],
[
"1369.95",
"22450.00"
]
],
"asks": [
[
"1372.30",
"3100.00"
],
[
"1372.65",
"5400.00"
],
[
"1373.10",
"10250.00"
],
[
"1373.70",
"8800.00"
],
[
"1374.25",
"19600.00"
]
],
"time": "2026-09-06T12:00:00.482Z"
}
}Path Parameters
The market symbol, BASE-QUOTE in uppercase
A market's one canonical identifier: the base asset, a hyphen, the quote asset, all uppercase. USDT-NGN means USDT priced in NGN, so a buy acquires USDT and spends NGN. The same string is used in paths, query parameters, request bodies and stream subscriptions; there is no second spelling of a market anywhere on this surface.
5 - 21^[A-Z0-9]{2,10}-[A-Z0-9]{2,10}$"USDT-NGN"