---
title: "Run Backtesting"
method: POST
path: "/backtesting/run-backtesting"
tags: ["Backtesting"]
---

# Run Backtesting

`POST /backtesting/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

## Request body

- BacktestingConfig
  - `start_time` integer
  - `end_time` integer
  - `backtesting_resolution` string
  - `trade_cost` number
  - `config` union, required
    - object
    - string

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/hummingbot/apis/hummingbot-api.md) · [All operations](https://skmtc.net/hummingbot/apis/hummingbot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hummingbot/hummingbot-api/revisions/5347fe79537f/schema)
