DELETE /api/v1/market/orders/{id}
Cancel an open order. Only orders with status "pending" or "partial" can be cancelled. Any unfilled budget is returned to the user's balance.
Authentication​
Required. Bearer token in Authorization header.
Request​
Path Parameters​
| Parameter | Type | Required | Description |
|---|---|---|---|
id | int64 | Yes | ID of the order to cancel. |
Example​
curl -X DELETE https://intotes.com/api/v1/market/orders/1001 \
-H "Authorization: Bearer <token>"
Response​
200 OK​
{
"message": "Order cancelled successfully"
}
The unfilled portion of the order budget is automatically credited back to the user's balance.
Errors​
| Status | Code | Description |
|---|---|---|
| 404 | ORDER_NOT_FOUND | No order found with the given ID for this user. |
| 409 | ORDER_NOT_OPEN | The order has already been filled or cancelled. |