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

# Cancel all Spot orders

> Cancel all open Spot orders, optionally limited to one market. Does not cancel Perps orders. A cancellation cannot undo a fill.

See the [Spot API guide](/api-reference/spot-api-guide). Requires authentication; API-key scope: `trade`.



## OpenAPI

````yaml /api-reference/rest-spec.json delete /v1/spot/orders
openapi: 3.0.3
info:
  title: Ondo Perps REST API
  version: '1.0'
  description: >-
    REST API for Ondo Perps: account, wallet, deposits/withdrawals, API keys,
    Spot trading, internal transfers, and perpetual futures trading.
servers:
  - url: https://api.ondoperps.xyz
security:
  - BearerAuth: []
paths:
  /v1/spot/orders:
    delete:
      tags:
        - Spot trading
      summary: Cancel all Spot orders
      description: >-
        Cancel all open Spot orders, optionally limited to one market. Does not
        cancel Perps orders. A cancellation cannot undo a fill.


        See the [Spot API guide](/api-reference/spot-api-guide). Requires
        authentication; API-key scope: `trade`.
      operationId: deleteSpotOrders
      parameters:
        - name: market
          in: query
          required: false
          description: Exact Spot identifier.
          schema:
            type: string
            example: NVDA-USDC
      responses:
        '200':
          description: Success. Inspect item-level outcomes for batch operations.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  result:
                    type: object
                    nullable: true
                    description: May be omitted on successful cancellation.
                required:
                  - success
        '400':
          description: Validation error; inspect error_code and error.
        '429':
          $ref: '#/components/responses/TooManyRequests'
      security:
        - BearerAuth: []
        - ApiKeyAuth: []
components:
  responses:
    TooManyRequests:
      description: Rate limit exceeded. Slow down request frequency.
      content:
        application/json:
          schema:
            type: object
            properties:
              success:
                type: boolean
                example: false
              error:
                type: string
                description: Human-readable error message
              error_code:
                type: string
                enum:
                  - too_many_requests
          example:
            success: false
            error: Description of the error
            error_code: too_many_requests
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    ApiKeyAuth:
      type: apiKey
      in: header
      name: ONDO-KEY-ID
      description: >-
        Also send ONDO-TIMESTAMP and ONDO-SIGN. See
        /api-reference/api_key_authentication for exact HMAC signing; the key ID
        alone is insufficient.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.