cURL
curl --request POST \ --url https://api.limitless.exchange/orders/cancel-batch \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "orderIds": [ "6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203", "9e31c452-8a2b-42d1-b327-65f18d07dc96" ] } '
{ "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" } ] }
JWT token for API access (alternative to cookie auth)
Array of order IDs to be cancelled in a single batch operation
[ "6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203", "9e31c452-8a2b-42d1-b327-65f18d07dc96"]
All orders successfully cancelled
Confirmation message for the cancelled orders
"Orders canceled successfully"
Array of successfully cancelled order IDs
["611badac-8dfc-48a0-b09e-59654adea1c5"]
Array of orders that failed to cancel with reasons
Show child attributes