> 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.md).

# Cancel Algo Order

Cancel one pending algorithmic order by its order ID.

### Endpoint

`DELETE /v1/algo/order?order_id={order_id}&symbol={symbol}`

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

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

**Request limit:** 5 requests per second. This endpoint cancels one algorithmic order using its order ID and symbol.

### Authentication headers

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

### Query parameters

* `order_id` (number, required) — ID of the algorithmic order.
* `symbol` (string, required) — market symbol for the order.

### Example request

```bash
curl --request DELETE \
  --url 'https://api.orderly.org/v1/algo/order?order_id=13&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` returns the cancellation status and server timestamp.

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