Cancel Single Order
Cancel an existing active order by order ID.Endpoint
Parameters
Order ID to cancel (UUID v7)
RSA public key identifier for authentication
Base64-encoded RSA signature of the request payload.
Payload format:
POST:/api/v1/orders/{orderId}/cancel
Example Request
Response
Cancellation confirmation details
Cancel All Orders
Cancel all active orders for the authenticated account.Endpoint
Parameters
API key for authentication
Example Request
Response
Bulk cancellation results
Cancellation States
CANCELED
CANCELED
Immediate Cancellation: Order was successfully removed from the order book
- Order is no longer active
- No further executions will occur
- Locked funds are released immediately
PENDING_CANCEL
PENDING_CANCEL
Delayed Cancellation: Cancel request is being processed
- Order may still receive fills while cancellation is pending
- Common during high market activity
- Status will change to “CANCELED” once confirmed
Cannot Cancel
Cannot Cancel
Orders that cannot be canceled:
- Already filled orders (
FILLED
) - Already canceled orders (
CANCELED
) - Market orders that are executing (
PENDING
) - Expired orders (
EXPIRED
)
Error Handling
Order Not Found
Order Not Found
Cannot Cancel
Cannot Cancel
Emergency Cancellation
For urgent situations, use the “Cancel All” endpoint to quickly close all positions:Best Practices
Order Management
Order Management
- Cancel stale orders: Remove orders that are no longer relevant
- Track order IDs: Keep track of order IDs for cancellation
- Monitor partial fills: Be aware that partially filled orders may continue executing
Risk Management
Risk Management
- Quick response: Cancel orders immediately when market conditions change
- Bulk operations: Use bulk cancel for efficient order management
- Emergency procedures: Have a plan for quickly canceling all orders
Technical Considerations
Technical Considerations
- Handle PENDING_CANCEL: Account for delayed cancellations in your logic
- Verify cancellation: Check order status after cancellation requests