---
title: "Cancel All Orders"
method: DELETE
path: "/v1/trade/orders/all"
---

# Cancel All Orders

`DELETE /v1/trade/orders/all`

Cancel all open orders for the authenticated account on one instrument.
Requires proxy signature, see [proxy signing](/http/signing#2-proxy-signing).

## Request body

- CancelAllRequest
  - `op` OpCancelAll, required
    - `type` 'cancelAll', required
    - `args` object, required — Optional cancel scope. When `iid` is provided, only open orders for that instrument are canceled. When omitted, all open orders for the signing account are canceled.
      - `iid` integer — Instrument ID
  - `sig` string, required — Signature in hex format
  - `salt` integer, required — Salt
  - `ts` integer, required — Request timestamp. Unix milliseconds for most operations; Unix seconds for withdrawals (must match the on-chain EIP-712 struct verified against block.timestamp).
  - `exp` integer — Command expiry timestamp in Unix milliseconds. If provided, it must be in the future and within the gateway's default command timeout. It can shorten request validity but cannot extend it. This is not an order auto-cancel time.

## Response `200`

Cancel all accepted response.

- GenericAccepted
  - `status` 'ok', required

## Other responses

- `400` — Bad request — the request was malformed or failed validation (bad query parameters, unparseable body, invalid signature, or a domain pre-check). The `error` field is a human-readable validation detail.
- `429` — Too Many Requests. `error` distinguishes the limit that was hit: `ip_rate_limited` (per-IP token bucket), `action_rate_limited` (per-account action rate), or `open_orders_limit` (resting open-order cap).
- `500` — Internal server error. `error` is `internal_error`.

---

[API](https://skmtc.net/polymarket/apis/polymarket-perps-http-api.md) · [All operations](https://skmtc.net/polymarket/apis/polymarket-perps-http-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/polymarket/polymarket-perps-http-api/versions/e17c4709273e/schema)
