Endpoint
DELETE /api/v1/order
Request
Body parameters
The unique identifier of the order to cancel
The unique identifier of the user who owns the order
The price of the order to cancel (must match the original order)
The order side (“BUY” or “SELL”) - must match the original order
The trading pair market (e.g., “SOL_USDC”, “BTC_USDT”)
Response
Success response
Status message indicating the order was cancelled
The unique identifier of the cancelled order
Error response
Status message indicating the order cancellation failed
Example
Error codes
- 200 OK - Order cancelled successfully
- 500 Internal Server Error - Failed to cancel the order or Redis connection error