Bulk cancel multiple orders
Cancels multiple orders in a single request by specifying one of: product_ids (cancel all orders for specific products), order_ids (list of UUIDs), nonces (list of int64), or client_order_ids (list of strings). Maximum 100 items per request. Returns lists of successfully canceled orders, already done orders, and already cancel-requested orders.
Requires authentication.
OBSIDIAN-KEY<token>
In: header
OBSIDIAN-SECRET<token>
In: header
product_ids?array<string>
Product IDs to be canceled.
order_ids?array<string>
Order IDs to be canceled. Maximum 100 items.
nonces?array<string>
Order nonces to be canceled. Maximum 100 items.
client_order_ids?array<string>
Client order IDs to be canceled. Maximum 100 items.
Response Body
application/json
application/json
curl -X DELETE "https://api.dev.obsidian.exchange/orders" \ -H "Content-Type: application/json" \ -d '{}'{
"cancel_requested_orders": [
{
"id": "string",
"nonce": "string",
"client_order_id": "string"
}
],
"not_opened_orders": [
{
"id": "string",
"nonce": "string",
"client_order_id": "string"
}
],
"already_cancel_requested_orders": [
{
"id": "string",
"nonce": "string",
"client_order_id": "string"
}
]
}{
"code": 0,
"message": "string",
"details": [
{
"@type": "string",
"property1": null,
"property2": null
}
]
}