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

# Stop Executor

> Stop an active executor.

Options:
- `keep_position`: If true, keeps any open position (for position executors).
  If false, the executor will attempt to close all positions before stopping.

Returns confirmation of the stop action.



## OpenAPI

````yaml /api-reference/openapi.json post /executors/{executor_id}/stop
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:
  /executors/{executor_id}/stop:
    post:
      tags:
        - Executors
      summary: Stop Executor
      description: >-
        Stop an active executor.


        Options:

        - `keep_position`: If true, keeps any open position (for position
        executors).
          If false, the executor will attempt to close all positions before stopping.

        Returns confirmation of the stop action.
      operationId: stop_executor_executors__executor_id__stop_post
      parameters:
        - name: executor_id
          in: path
          required: true
          schema:
            type: string
            title: Executor Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/StopExecutorRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StopExecutorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBasic: []
components:
  schemas:
    StopExecutorRequest:
      properties:
        keep_position:
          type: boolean
          title: Keep Position
          description: Whether to keep the position open (for position executors)
          default: false
      type: object
      title: StopExecutorRequest
      description: Request to stop an executor.
    StopExecutorResponse:
      properties:
        executor_id:
          type: string
          title: Executor Id
          description: Executor identifier
        status:
          type: string
          title: Status
          description: New status (usually 'stopping')
        keep_position:
          type: boolean
          title: Keep Position
          description: Whether position was kept open
      type: object
      required:
        - executor_id
        - status
        - keep_position
      title: StopExecutorResponse
      description: Response after stopping an executor.
    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

````