Trading
Batch Cancel Orders (Combined)
Changed onCancel open orders by either internal orderIds or client-provided clientOrderIds.
post/orders/batch-cancel
Request
- Base URLhttps://api.limitless.exchange
- AuthAPI key in header lmts-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"orderIds": [
"6f52b6d2-6c9e-4a5c-8a4f-28ab4b7ff203"
],
"clientOrderIds": [
"partner-order-001",
"partner-order-002"
]
}Response
All orders successfully cancelled
Example response
{
"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"
}
]
}Changes
- info
the endpoint scheme security
HmacAuthwas added to the API - info
the endpoint scheme security
ApiKeyAuthwas removed from the API
- info
- info
endpoint added
- info