Skip to main content

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​

ParameterTypeRequiredDescription
idint64YesID 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​

StatusCodeDescription
404ORDER_NOT_FOUNDNo order found with the given ID for this user.
409ORDER_NOT_OPENThe order has already been filled or cancelled.