---
title: "Cancel All Orders"
method: POST
path: "/api/v1/order/cancel-all"
tags: ["Trade"]
---

# Cancel All Orders

`POST /api/v1/order/cancel-all`

## Request

- Base URL: `https://api.ekiden.fi`
- URL: `https://api.ekiden.fi/api/v1/order/cancel-all`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/ekidenfi/apis/ekiden-gateway/docs/api/v1/order/cancel-all/post.ts> (a function with typed inputs; its response is checked against the schema)

Cancel all existing orders for a sub-account. Optionally filtered by symbol; omit symbol to cancel open orders across all markets.

## Request body

- CancelAllOrdersRequest: Request to cancel all orders, optionally filtered by symbol. Omit `symbol` to cancel every open order on the sub-account. Set `symbol` to cancel only open orders on that market. TODO: Cancels up to 500 orders per request TODO: System picks up 500 orders randomly to cancel when you have over 500 orders
  - `sub_account_address` string, required
  - `symbol` string

## Response `200`

Orders canceled

- CancelAllOrdersResponse
  - `exit_info` union, required
    - object
      - `Error` object, required
        - `code` integer, required
        - `msg` string, required
    - object
      - `Success` object, required
        - `code` integer, required
        - `msg` string, required
  - `result` CancelOrderResponse[], required
    - `order_id` string, uuid
    - `order_link_id` string
  - `time` string, date-time, required

## Changes

- **2026-05-28** `75ffe546b73a`: 3 breaking
  - the response property `result/items/order_id` became optional for the status `200`
  - added `#/components/schemas/OrderId, subschema #1` to the `result/items/order_id` response property `oneOf` list for the response status `200`
  - the `result/items/order_id` response's property type changed from `string` to no type, and format from `uuid` to no format for status `200`
- **2026-01-29** `16fe50636aa5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/ekidenfi/apis/ekiden-gateway/changes/api/v1/order/cancel-all/post.md)

---

[API](https://skmtc.dev/ekidenfi/apis/ekiden-gateway.md) - [All operations](https://skmtc.dev/ekidenfi/apis/ekiden-gateway/llms.txt) - [OpenAPI document](https://skmtc.dev/ekidenfi/apis/ekiden-gateway/revisions/fad9eecaba2e?raw)
