---
updatedAt: 2025-09-24T23:34:15.000Z
agentTools:
  projectIndex: https://api-docs.aevo.xyz/llms.txt
---

# PUBLISH Cancel Order

<div class="ws-method-div"><span class="APIMethod APIMethod_fixedWidth ws-pub-tag">PUB</span> <span class="ws-small-font">wss://ws.aevo.xyz</span></div>

<span class="ws-description"> Cancel an order. </span>

<span class="ws-small-font">**REQUEST**</span>

<Table align={["left"]}>
  <thead>
    <tr>
      <th>
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        * \*id\*\* <span class="ws-data-type ws-small-font">integer</span>
          Request ID, an arbitrary integer to link requests with responses. Eg. `1`
      </td>
    </tr>

    <tr>
      <td>
        * \*op\*\* <span class="ws-data-type ws-small-font">string</span>  <span class="ws-required-tag ws-small-font">required</span>
          Operation code: `cancel_order`
      </td>
    </tr>

    <tr>
      <td>
        <span class="ws-small-font">data.</span>**order\_id** <span class="ws-data-type ws-small-font">string</span> <span class="ws-required-tag ws-small-font">required</span>
        Order ID to be cancelled. Eg. `0x4c43e0ab72a4edb72dfe4b129148899815d816837b9a7e22d964b884834639f8`
      </td>
    </tr>
  </tbody>
</Table>

<details>
  <summary>Example</summary>

```json
{
  "id": 1,
  "op": "cancel_order",
  "data": {
    "order_id": "0xa907d8c3037289f5b38c94760c06ae436566e600884d09cbeee2ef2c64b2695d"
  }
}
```

</details>
<br />

<span class="ws-small-font">**RESPONSE**</span>

<Table align={["left"]}>
  <thead>
    <tr>
      <th>
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        * \*id\*\* <span class="ws-data-type ws-small-font">integer</span>
          Response ID, an arbitrary integer to link requests with responses. Eg. `1`
      </td>
    </tr>

    <tr>
      <td>
        <span class="ws-small-font">data.</span>**order\_id** <span class="ws-data-type ws-small-font">string</span> <span class="ws-required-tag ws-small-font">required</span>
        Order ID is the hash of the order payload. Eg. `0x4c43e0ab72a4edb72dfe4b129148899815d816837b9a7e22d964b884834639f8`
      </td>
    </tr>

    <tr>
      <td>
        <span class="ws-small-font">data.</span>**success** <span class="ws-data-type ws-small-font">boolean</span> <span class="ws-required-tag ws-small-font">required</span>
        True if cancel is successful.
      </td>
    </tr>
  </tbody>
</Table>

<details>
  <summary>Example</summary>

```json
{
  "id": 1,
  "data": {
    "order_id": "0xa907d8c3037289f5b38c94760c06ae436566e600884d09cbeee2ef2c64b2695d",
    "success": true
  }
}
```

</details>
<br />