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

# Cancel Order

> Cancel a specific order by its client order ID.

Args:
    account_name: Name of the account
    connector_name: Name of the connector
    client_order_id: Client order ID to cancel
    trading_pair: Trading pair for the order
    accounts_service: Injected accounts service

Returns:
    Success message with cancelled order ID

Raises:
    HTTPException: 404 if account/connector not found, 500 for cancellation errors



## OpenAPI

````yaml /api-reference/openapi.json post /trading/{account_name}/{connector_name}/orders/{client_order_id}/cancel
openapi: 3.1.0
info:
  title: Hummingbot API
  description: API for managing Hummingbot trading instances
  version: 1.0.1
servers:
  - url: http://localhost:8000
    description: Local development server
security: []
paths:
  /trading/{account_name}/{connector_name}/orders/{client_order_id}/cancel:
    post:
      tags:
        - Trading
      summary: Cancel Order
      description: |-
        Cancel a specific order by its client order ID.

        Args:
            account_name: Name of the account
            connector_name: Name of the connector
            client_order_id: Client order ID to cancel
            trading_pair: Trading pair for the order
            accounts_service: Injected accounts service

        Returns:
            Success message with cancelled order ID

        Raises:
            HTTPException: 404 if account/connector not found, 500 for cancellation errors
      operationId: >-
        cancel_order_trading__account_name___connector_name__orders__client_order_id__cancel_post
      parameters:
        - name: account_name
          in: path
          required: true
          schema:
            type: string
            title: Account Name
        - name: connector_name
          in: path
          required: true
          schema:
            type: string
            title: Connector Name
        - name: client_order_id
          in: path
          required: true
          schema:
            type: string
            title: Client Order Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBasic: []
components:
  schemas:
    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
  securitySchemes:
    HTTPBasic:
      type: http
      scheme: basic

````