Skip to main content
DELETE
/
orders
/
all
/
{slug}
Cancel all of a user's orders in a specific market
curl --request DELETE \
  --url https://api.limitless.exchange/orders/all/{slug} \
  --header 'Authorization: Bearer <token>'
{
  "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"
    }
  ]
}

Authorizations

Authorization
string
header
required

JWT token for API access (alternative to cookie auth)

Response

All orders successfully cancelled

message
string
required

Confirmation message for cancelling all orders

Example:

"Orders canceled successfully"

canceled
string[]

Array of successfully cancelled order IDs

Example:
["611badac-8dfc-48a0-b09e-59654adea1c5"]
failed
object[]

Array of orders that failed to cancel with reasons