> For the complete documentation index, see [llms.txt](https://docs.pangolin.exchange/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pangolin.exchange/pangoperps/trading-api/order-management/cancel-algo-order-by-client-order-id.md).

# Cancel Algo Order by Client Order ID

Cancel a pending algorithmic order using its client order ID.

### Endpoint

**DELETE /v1/algo/client/order?client\_order\_id={client\_order\_id}\&symbol={symbol}**

Mainnet: `DELETE https://api.orderly.org/v1/algo/client/order?client_order_id={client_order_id}&symbol={symbol}`

Testnet: `DELETE https://testnet-api.orderly.org/v1/algo/client/order?client_order_id={client_order_id}&symbol={symbol}`

Rate limit: 5 requests per second. This signed request cancels a specific algorithmic order using the client-assigned order ID.

### Authentication headers

* orderly-timestamp — signed-request timestamp in milliseconds.
* orderly-account-id — PangoPerps account ID.
* orderly-key — public API key.
* orderly-signature — request signature.

### Query parameters

| Parameter         | Type   | Required | Description                                  |
| ----------------- | ------ | -------- | -------------------------------------------- |
| symbol            | string | Yes      | Market symbol for the algorithmic order.     |
| client\_order\_id | string | Yes      | Client-assigned ID of the algorithmic order. |

### Example request

```bash
curl --request DELETE \
  --url 'https://api.orderly.org/v1/algo/client/order?client_order_id=pango-algo-001&symbol=PERP_ETH_USDC' \
  --header 'orderly-account-id: <account-id>' \
  --header 'orderly-key: <public-api-key>' \
  --header 'orderly-signature: <signature>' \
  --header 'orderly-timestamp: <timestamp-in-ms>'
```

### Successful response

HTTP 200 indicates that the cancellation request was sent. Check the order state separately to confirm its final status.

```json
{
  "success": true,
  "data": {
    "status": "CANCEL_SENT"
  },
  "timestamp": 1702989203989
}
```
