Skip to main content
curl -X DELETE "https://api.polyhush.com/api/v1/trading/orders/ord_abc123" \
     -H "X-API-Key: your-api-key"

Path Parameters

order_id
string
required
The ID of the order to cancel.

Response

message
string
Status message.
refund_amount
number
Amount refunded to available balance (for buy orders).
{
  "message": "Order cancelled successfully",
  "refund_amount": 55.00
}

Error Responses

StatusDescription
404Order not found
400Order already filled or cancelled