Cancel order
Cancel an order. (Private ๐)
This endpoint is used to cancel a limit order which hasnโt already been executed at a given time. Please note that this is a Private ๐ route which means it needs to be authorised by the account initiating this request.
Note: You will need to include the JWT Auth token to request headers to access this endpoint. To get the JWT Auth Token, refer the login section of the documentation.
Endpoint
Request Headers
Request Body
Field | Type | Mandatory |
---|---|---|
order_id | INTEGER | YES |
Example
Response
Possible Cancel Reasons:You may receive the following cancel reasons in the response:
'Order cancelled by user': The user requested to cancel the order directly, or through a bulk cancel request.
โSlippage greater than 30%. Order cancelled to prevent loss of fundsโ: The order was cancelled because its price changed by more than 30% from the time it was placed to the time it was matched.
โOrder cancellation was initiated by systemโ: The order was cancelled for reasons such as order expiration, slippage exceeding a specified threshold, inconsistent order matching, or detection of suspicious activity. However, cancellations due to these reasons are infrequent.
โSomething went wrong, order was cancelled to prevent loss of fundsโ: The order was cancelled because it didn't meet the matching criteria due to unexpected reasons.
Last updated