> ## 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 Order

> Cancel an existing order.

Request cancellation of an order.
Returns 202 Accepted with order state - cancellation is processed asynchronously.



## OpenAPI

````yaml /openapi.json delete /v1/orders/{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/orders/{order_id}:
    delete:
      tags:
        - orders
      summary: Cancel Order
      description: >-
        Cancel an existing order.


        Request cancellation of an order.

        Returns 202 Accepted with order state - cancellation is processed
        asynchronously.
      operationId: cancel_order_v1_orders__order_id__delete
      parameters:
        - name: order_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Order Id
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CancelOrderResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    CancelOrderResponse:
      properties:
        cancelled_centos_order_ids:
          items:
            type: string
            format: uuid
          type: array
          title: Cancelled Centos Order Ids
          description: List of cancelled centos order identifiers
        failed_cancelled_reasons:
          additionalProperties:
            type: string
          propertyNames:
            format: uuid
          type: object
          title: Failed Cancelled Reasons
          description: Dictionary of failed to cancel centos order identifiers and reasons
      type: object
      required:
        - cancelled_centos_order_ids
        - failed_cancelled_reasons
      title: CancelOrderResponse
      description: Schema for cancel order response
    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

````