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

# Cancel Complex Order

> Cancel a complex order.

Request cancellation of a complex order.
Returns 202 Accepted with the current complex order state —
cancellation is processed asynchronously.



## OpenAPI

````yaml /openapi.json delete /v1/complex-orders/{complex_order_id}
openapi: 3.1.0
info:
  title: Centos Finance API
  contact:
    name: Centos Finance
    url: https://centosfi.com/
  license:
    name: Proprietary
  version: 1.0.0
servers:
  - url: https://api.centosfi.com
security: []
tags:
  - name: markets
    description: Search and discover prediction markets across Kalshi and Polymarket.
  - name: subaccounts
    description: >-
      Manage trading subaccounts. Each subaccount can have its own exchange
      credentials and positions.
  - name: positions
    description: View current portfolio positions across all connected exchanges.
  - name: fills
    description: Retrieve trade execution history and fill details.
  - name: prices
    description: Get historical price data and candlesticks from exchanges.
  - name: orders
    description: Place and manage orders on prediction market exchanges.
  - name: complex-orders
    description: >-
      Manage complex orders: conditional orders (take-profit and stop-loss),
      TWAP, and other advanced order types.
paths:
  /v1/complex-orders/{complex_order_id}:
    delete:
      tags:
        - complex-orders
      summary: Cancel Complex Order
      description: |-
        Cancel a complex order.

        Request cancellation of a complex order.
        Returns 202 Accepted with the current complex order state —
        cancellation is processed asynchronously.
      operationId: cancel_complex_order_v1_complex_orders__complex_order_id__delete
      parameters:
        - name: complex_order_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Complex Order Id
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelComplexOrderResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CancelComplexOrderResponse:
      properties:
        cancelled_complex_order_ids:
          items:
            type: string
            format: uuid
          type: array
          title: Cancelled Complex Order Ids
          description: List of cancelled complex order identifiers
        failed_cancelled_complex_order_ids:
          additionalProperties:
            type: string
          propertyNames:
            format: uuid
          type: object
          title: Failed Cancelled Complex Order Ids
          description: Dictionary of failed to cancel complex order identifiers and reasons
      type: object
      required:
        - cancelled_complex_order_ids
        - failed_cancelled_complex_order_ids
      title: CancelComplexOrderResponse
      description: >-
        Schema for cancel order response What is returned when user cancels an
        order/ orders.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````