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

# Cancel all TP/SL orders

`POST /v1/orders/tpsl/cancel-all`

Cancel all accepted TP/SL orders for an account in a specific market. Already triggered, executed, or previously cancelled records are left untouched.

**Signature (required for non-JWT):**
Sign EIP-712 typed data (same domain as regular orders) with primaryType `CancelAllTpslOrders`:
fields: account(address), marketId(uint64), deadline(uint32).

## Request body

- ApiCancelAllTpslOrdersRequest
  - `account` string — Account address that owns the orders
  - `market_id` string, uint64 — Market ID to cancel TP/SL orders in (required, must be > 0)
  - `signer` string — Signer address (session key) that signed this request
  - `signature` string, byte — 65-byte ECDSA signature (r+s+v) from signer over EIP-712 CancelAllTpslOrders typed data
  - `deadline` integer — Unix timestamp after which the signature expires

## Response `200`

A successful response.

- ApiCancelAllTpslOrdersResponse
  - `cancelled_count` string, int64 — Number of TP/SL orders cancelled by this call (0 if none were in 'accepted' status)
  - `success` boolean — Whether the cancel-all call succeeded

## 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)
