> ## Documentation Index
> Fetch the complete documentation index at: https://docs.architect.exchange/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel all orders



## OpenAPI

````yaml openapi/order-gateway.json POST /cancel-all-orders
openapi: 3.1.0
info:
  title: ax-order-gateway
  description: ''
  license:
    name: ''
  version: 15.22.0
servers:
  - url: https://gateway.architect.exchange/orders
security: []
tags:
  - name: order-gateway
    description: Order gateway
paths:
  /cancel-all-orders:
    post:
      tags:
        - order-gateway
      operationId: cancel_all_orders
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CancelAllOrdersRequest'
        required: true
      responses:
        '200':
          description: All orders canceled
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelAllOrdersResponse'
        '400':
          description: Unknown instrument symbol
      security:
        - session_token: []
components:
  schemas:
    CancelAllOrdersRequest:
      type: object
      description: Request to cancel all orders for the authenticated user.
      properties:
        account_id:
          type:
            - string
            - 'null'
          description: >-
            Optional account ID. If omitted, the account is inferred from the
            connection: the

            user's default account, or the session account for an account-scoped
            session.
        symbol:
          type:
            - string
            - 'null'
          description: >-
            Optional symbol filter. If provided, only orders for this symbol
            will be canceled.
    CancelAllOrdersResponse:
      type: object
      description: Response for canceling all orders.
  securitySchemes:
    session_token:
      type: http
      scheme: bearer
      description: User session token

````