> ## 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 Spot order

> Cancel by exchange ID or client-prefixed ID. Reconcile status and fills after ambiguous results.

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/{orderID}
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/{orderID}:
    delete:
      tags:
        - Spot trading
      summary: Cancel Spot order
      description: >-
        Cancel by exchange ID or client-prefixed ID. Reconcile status and fills
        after ambiguous results.


        See the [Spot API guide](/api-reference/spot-api-guide). Requires
        authentication; API-key scope: `trade`.
      operationId: deleteSpotOrdersOrderID
      parameters:
        - name: orderID
          in: path
          required: true
          description: >-
            Exchange order ID or client: followed by the original clientOrderId.
            URL-encode the path.
          schema:
            type: string
      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.