Cancel multiple orders in batch
curl --request POST \
--url https://api.limitless.exchange/orders/cancel-batch \
--header 'Content-Type: application/json' \
--header 'lmts-api-key: <api-key>' \
--data '
{
"orderIds": [
"6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203",
"9e31c452-8a2b-42d1-b327-65f18d07dc96"
]
}
'import requests
url = "https://api.limitless.exchange/orders/cancel-batch"
payload = { "orderIds": ["6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203", "9e31c452-8a2b-42d1-b327-65f18d07dc96"] }
headers = {
"lmts-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'lmts-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
orderIds: ['6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203', '9e31c452-8a2b-42d1-b327-65f18d07dc96']
})
};
fetch('https://api.limitless.exchange/orders/cancel-batch', 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.limitless.exchange/orders/cancel-batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'orderIds' => [
'6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203',
'9e31c452-8a2b-42d1-b327-65f18d07dc96'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"lmts-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.limitless.exchange/orders/cancel-batch"
payload := strings.NewReader("{\n \"orderIds\": [\n \"6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203\",\n \"9e31c452-8a2b-42d1-b327-65f18d07dc96\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("lmts-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.limitless.exchange/orders/cancel-batch")
.header("lmts-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"orderIds\": [\n \"6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203\",\n \"9e31c452-8a2b-42d1-b327-65f18d07dc96\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.limitless.exchange/orders/cancel-batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["lmts-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"orderIds\": [\n \"6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203\",\n \"9e31c452-8a2b-42d1-b327-65f18d07dc96\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Orders canceled successfully",
"canceled": [
"611badac-8dfc-48a0-b09e-59654adea1c5"
],
"failed": [
{
"orderId": "b53f0e4b-1529-45cc-ad39-e27f4c6eab5a",
"reason": "ORDER_NOT_FOUND",
"message": "Order not found or already canceled"
}
]
}{
"message": "Orders canceled successfully",
"canceled": [
"611badac-8dfc-48a0-b09e-59654adea1c5"
],
"failed": [
{
"orderId": "b53f0e4b-1529-45cc-ad39-e27f4c6eab5a",
"reason": "ORDER_NOT_FOUND",
"message": "Order not found or already canceled"
}
]
}{
"message": "Invalid order data"
}{
"message": "Invalid order data"
}{
"code": "trading_disabled",
"message": "Trading is currently disabled.",
"mode": "disabled",
"resumeAt": "2026-06-22T18:00:00.000Z"
}Trading
Cancel Orders (Batch)
POST
/
orders
/
cancel-batch
Cancel multiple orders in batch
curl --request POST \
--url https://api.limitless.exchange/orders/cancel-batch \
--header 'Content-Type: application/json' \
--header 'lmts-api-key: <api-key>' \
--data '
{
"orderIds": [
"6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203",
"9e31c452-8a2b-42d1-b327-65f18d07dc96"
]
}
'import requests
url = "https://api.limitless.exchange/orders/cancel-batch"
payload = { "orderIds": ["6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203", "9e31c452-8a2b-42d1-b327-65f18d07dc96"] }
headers = {
"lmts-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'lmts-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
orderIds: ['6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203', '9e31c452-8a2b-42d1-b327-65f18d07dc96']
})
};
fetch('https://api.limitless.exchange/orders/cancel-batch', 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.limitless.exchange/orders/cancel-batch",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'orderIds' => [
'6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203',
'9e31c452-8a2b-42d1-b327-65f18d07dc96'
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"lmts-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.limitless.exchange/orders/cancel-batch"
payload := strings.NewReader("{\n \"orderIds\": [\n \"6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203\",\n \"9e31c452-8a2b-42d1-b327-65f18d07dc96\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("lmts-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.limitless.exchange/orders/cancel-batch")
.header("lmts-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"orderIds\": [\n \"6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203\",\n \"9e31c452-8a2b-42d1-b327-65f18d07dc96\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.limitless.exchange/orders/cancel-batch")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["lmts-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"orderIds\": [\n \"6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203\",\n \"9e31c452-8a2b-42d1-b327-65f18d07dc96\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Orders canceled successfully",
"canceled": [
"611badac-8dfc-48a0-b09e-59654adea1c5"
],
"failed": [
{
"orderId": "b53f0e4b-1529-45cc-ad39-e27f4c6eab5a",
"reason": "ORDER_NOT_FOUND",
"message": "Order not found or already canceled"
}
]
}{
"message": "Orders canceled successfully",
"canceled": [
"611badac-8dfc-48a0-b09e-59654adea1c5"
],
"failed": [
{
"orderId": "b53f0e4b-1529-45cc-ad39-e27f4c6eab5a",
"reason": "ORDER_NOT_FOUND",
"message": "Order not found or already canceled"
}
]
}{
"message": "Invalid order data"
}{
"message": "Invalid order data"
}{
"code": "trading_disabled",
"message": "Trading is currently disabled.",
"mode": "disabled",
"resumeAt": "2026-06-22T18:00:00.000Z"
}This endpoint cancels multiple orders by internal
orderIds only.
To cancel by either
orderIds or clientOrderIds, use Batch Cancel Orders (Combined).Authorizations
Scoped API token with HMAC-SHA256 signing. Requires three headers: lmts-api-key (token ID), lmts-timestamp (ISO-8601), lmts-signature (Base64-encoded HMAC). See Authentication docs for details.
Body
application/json
Array of order IDs to be cancelled in a single batch operation
Example:
[ "6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203", "9e31c452-8a2b-42d1-b327-65f18d07dc96" ]
Response
All orders successfully cancelled
⌘I