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

# Cancel All Orders

> Cancels all the user's active orders.

Publishes updates in the following websocket topics: [`orderbook`](#operation/orderbook), [`balance`](#operation/balance) and [`order_status`](#operation/order_status).

---

**Authorization**

- Requires a valid API key.
- Required API-key permission(s):
  - Trading (Write)



## OpenAPI

````yaml delete /trade/orders/all
openapi: 3.0.0
info:
  title: Ripio Gateway
  description: Ripio API - Services documentation.
  version: 0.1.0
  x-logo:
    url: https://cwstatic.nyc3.digitaloceanspaces.com/1996/bitcointrade.png
servers:
  - url: https://api.ripio.com
    description: Production environment
security: []
paths:
  /trade/orders/all:
    delete:
      tags:
        - Ripio Trade
      summary: Orders - Cancel All Orders
      description: >-
        Cancels all the user's active orders.


        Publishes updates in the following websocket topics:
        [`orderbook`](#operation/orderbook), [`balance`](#operation/balance) and
        [`order_status`](#operation/order_status).


        ---


        **Authorization**


        - Requires a valid API key.

        - Required API-key permission(s):
          - Trading (Write)
      parameters:
        - in: header
          name: authorization
          required: true
          description: The API key as a string.
          schema:
            type: string
        - in: header
          name: signature
          required: true
          description: >-
            See the [Generating
            Signature](/static/api/authentication#generating-signature) section
            for more details.
          schema:
            type: string
        - in: header
          name: timestamp
          required: true
          description: >-
            A timestamp in milliseconds. See the [Timestamp
            Security](/static/api/authentication#timestamp-security) section for
            more details.
          schema:
            type: number
        - in: header
          name: timstamp-tolerance
          required: false
          description: >-
            An additional, non-required parameter, that you can send to specify
            the number of milliseconds after the timestamp for the request to be
            valid. See the [Timestamp
            Security](/static/api/authentication#timestamp-security) section for
            more details.
          schema:
            type: number
      requestBody:
        content:
          application/json:
            schema:
              properties:
                pair:
                  description: Currency pair code
                  type: string
                  example: BTC_BRL
              type: object
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                description: Ok
                properties:
                  data:
                    items:
                      properties:
                        pair_code:
                          description: Pair code
                          type: string
                          example: BTC_BRL
                        order_id:
                          description: Order identifier
                          type: string
                        success:
                          description: Success flag
                          type: boolean
                      required:
                        - pair_code
                        - order_id
                        - success
                      type: object
                    type: array
                    example:
                      - order_id: F6D2661E-4D6F-4770-BBE6-CC063CBA3770
                        pair_code: BTC_BRL
                        success: true
                      - order_id: 7155ED34-9EC4-4733-8B32-1E4319CB662F
                        pair_code: BTC_BRL
                        success: false
                  error_code:
                    type: number
                    example: null
                  message:
                    type: string
                    example: null
                required:
                  - data
                  - error_code
                  - message
                type: object

````