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

# Cancel Order

This section documents the cancel\_order action

{% hint style="info" %}
This action is used to cancel all resting orders for a specified coin
{% endhint %}

***

## Example Request

This example cancels all resting orders on <mark style="color:green;">`BTC`</mark>

```json
{
  "action": "cancel_order",
  "coin": "BTC",
  "bot_id": BOT_ID,
  "api_key": "API_KEY"
}
```

***

## coin<mark style="color:red;">\*</mark>

This required parameter indicates which coin to use for the action.

```json
"coin": "BTC"
```

***

## order\_ids

This parameter indicates a list of order ids to cancel.

```json
"order_ids": [123, 456, 789]
```

{% hint style="info" %}
All resting orders for the specified coin will be canceled when not specified
{% endhint %}

***

## delay

This parameter indicates a number of seconds to wait before triggering the action

* A value of `5` is equal to a `5 seconds` delay
* Max. allowed delay is `10 seconds`

```json
"delay": 5
```
