curl --request DELETE \
--url https://api.sandbox.busha.so/v1/exchange/orders \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandbox.busha.so/v1/exchange/orders"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandbox.busha.so/v1/exchange/orders', 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/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
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/orders"
req, _ := http.NewRequest("DELETE", 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.delete("https://api.sandbox.busha.so/v1/exchange/orders")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.busha.so/v1/exchange/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Orders cancelled",
"pagination": {
"current_entries_size": 1
},
"data": [
{
"id": "exo_7Kq2mZ4tRbXn",
"client_order_id": "mm-usdtngn-bid-0091",
"market": "USDT-NGN",
"side": "buy",
"type": "limit",
"time_in_force": "gtc",
"post_only": true,
"stp_mode": "cancel_taker",
"status": "cancelled",
"price": "1371.50",
"quantity": "5000.00",
"quote_quantity": null,
"filled_quantity": "0.00",
"filled_quote": "0.00",
"remaining_quantity": "5000.00",
"average_price": null,
"cancel_reason": "cancel_all",
"maker_fee_rate": "0.0000",
"taker_fee_rate": "0.0010",
"created_at": "2026-09-06T12:00:00.115Z",
"updated_at": "2026-09-06T12:01:11.006Z",
"expires_at": null
}
]
}Cancel every order on one market
Cancels all of the caller’s live orders on one market and answers with the orders the cancel applied to. market is required: a venue-wide cancel with no scope is too easy to fire by accident and too blunt for a maker quoting several books, so it is not offered. Cancel each market in turn, or arm the dead man’s switch.
If placement is unavailable, this write returns 503 book_busy by default.
curl --request DELETE \
--url https://api.sandbox.busha.so/v1/exchange/orders \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.sandbox.busha.so/v1/exchange/orders"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.sandbox.busha.so/v1/exchange/orders', 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/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
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/orders"
req, _ := http.NewRequest("DELETE", 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.delete("https://api.sandbox.busha.so/v1/exchange/orders")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sandbox.busha.so/v1/exchange/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "success",
"message": "Orders cancelled",
"pagination": {
"current_entries_size": 1
},
"data": [
{
"id": "exo_7Kq2mZ4tRbXn",
"client_order_id": "mm-usdtngn-bid-0091",
"market": "USDT-NGN",
"side": "buy",
"type": "limit",
"time_in_force": "gtc",
"post_only": true,
"stp_mode": "cancel_taker",
"status": "cancelled",
"price": "1371.50",
"quantity": "5000.00",
"quote_quantity": null,
"filled_quantity": "0.00",
"filled_quote": "0.00",
"remaining_quantity": "5000.00",
"average_price": null,
"cancel_reason": "cancel_all",
"maker_fee_rate": "0.0000",
"taker_fee_rate": "0.0010",
"created_at": "2026-09-06T12:00:00.115Z",
"updated_at": "2026-09-06T12:01:11.006Z",
"expires_at": null
}
]
}Query Parameters
The market to cancel on. Required.
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"