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

# Run Backtesting

> Run a backtesting simulation with the provided configuration.

Args:
    backtesting_config: Configuration for the backtesting including start/end time,
                      resolution, trade cost, and controller config
                      
Returns:
    Dictionary containing executors, processed data, and results from the backtest
    
Raises:
    Returns error dictionary if backtesting fails



## OpenAPI

````yaml /api-reference/openapi.json post /backtesting/run-backtesting
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:
  /backtesting/run-backtesting:
    post:
      tags:
        - Backtesting
      summary: Run Backtesting
      description: |-
        Run a backtesting simulation with the provided configuration.

        Args:
            backtesting_config: Configuration for the backtesting including start/end time,
                              resolution, trade cost, and controller config
                              
        Returns:
            Dictionary containing executors, processed data, and results from the backtest
            
        Raises:
            Returns error dictionary if backtesting fails
      operationId: run_backtesting_backtesting_run_backtesting_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BacktestingConfig'
        required: true
      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:
    BacktestingConfig:
      properties:
        start_time:
          type: integer
          title: Start Time
          default: 1735689600
        end_time:
          type: integer
          title: End Time
          default: 1738368000
        backtesting_resolution:
          type: string
          title: Backtesting Resolution
          default: 1m
        trade_cost:
          type: number
          title: Trade Cost
          default: 0.0006
        config:
          anyOf:
            - additionalProperties: true
              type: object
            - type: string
          title: Config
      type: object
      required:
        - config
      title: BacktestingConfig
    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

````