---
title: "Cancel all orders"
method: POST
path: "/v1/orders/cancel-all"
tags: ["Orders"]
---

# Cancel all orders

`POST /v1/orders/cancel-all`

Cancel all resting orders for an account in a specific market.

## Request body

- ApiCancelAllOrdersRequest
  - `permit` ApiPermitParams — Permit parameters for v3 authenticated operations. Client signs EIP-712 VerifyWitness; server builds byte-packed permit suffix. Uses bitmap nonces for replay protection.
    - `account` string — Account address (hex)
    - `signer` string — Signer address (hex)
    - `nonce_anchor` string, uint64 — Permit nonce anchor (uint48)
    - `nonce_bitmap_index` integer — Permit nonce bitmap index (uint8, 0-255)
    - `deadline` integer — Permit deadline (unix timestamp)
    - `signature` string, byte — EIP-2098 compact signature (64 bytes: r + yParityAndS) or standard 65-byte (r+s+v)
  - `market_id` integer — Market ID to cancel orders in (required, must be > 0)

## Response `200`

A successful response.

- ApiCancelAllOrdersResponse
  - `tx_hash` string
  - `block_number` string, uint64
  - `success` boolean

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/rise/apis/risex-rest-api.md) · [All operations](https://skmtc.net/rise/apis/risex-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/rise/risex-rest-api/revisions/194af8339c0d/schema)
