> For the complete documentation index, see [llms.txt](https://abcc-docs.gitbook.io/api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://abcc-docs.gitbook.io/api/spot-trade/cancel-order.md).

# Cancel Order

## Cancel Order

<mark style="color:green;">`POST`</mark> `https://api.abcc.com/api/v1/exchange/orders/:order_id/cancel`

#### Path Parameters

| Name      | Type    | Description |
| --------- | ------- | ----------- |
| order\_id | integer | Order ID    |

#### Request Body

| Name        | Type   | Description                                                |
| ----------- | ------ | ---------------------------------------------------------- |
| tonce       | string | Timestamp of the current time in milliseconds (Unix epoch) |
| signature   | string |                                                            |
| access\_key | string |                                                            |

**OUTPUT EXPLANATION**

| Parameter         | Type    | Explain                                |
| ----------------- | ------- | -------------------------------------- |
| id                | Integer | ID                                     |
| created\_at       | String  | order time                             |
| market\_code      | String  | The only code for the market           |
| side              | String  | Buy and sell type                      |
| state             | String  | status                                 |
| ord\_type         | String  | Order type                             |
| price             | String  | Order price                            |
| avg\_price        | String  | The average price of transactions      |
| volume            | String  | Initial pending order volume           |
| remaining\_volume | String  | The remaining amount of pending orders |
| executed\_volume  | String  | Executed pending order volume          |
| trades\_count     | Integer | Number of transactions                 |

SIDE

| Parameter | Type   | Explanation |
| --------- | ------ | ----------- |
| Buy       | String | Buy         |
| Sell      | String | Sell        |

STATE

| Parameter | Type   | Explanation           |
| --------- | ------ | --------------------- |
| Wait      | String | Pending order         |
| Done      | String | Completed transaction |
| Cancel    | String | Canceled              |

ORD\_TYPE

| Parameter | Type   | Explanation  |
| --------- | ------ | ------------ |
| limit     | String | Limit order  |
| market    | String | Market order |

**Notice**

* Canceling a pending order is an asynchronous operation. The successful return of the API only means that the cancellation request has been successfully submitted and the server is processing it. It does not mean that the order has been canceled.
* When your pending order has unprocessed trade transactions, or the cancellation request queue is busy, the order will be delayed for cancellation
