Trading
Cancel multiple orders in batch
Changed onpost/orders/cancel-batch
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",
"9e31c452-8a2b-42d1-b327-65f18d07dc96"
]
}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
added the non-success response with the status
- info
removed the non-success response with the status
- info
- info
added the non-success response with the status
- info