Skip to main content
POST
/
backtesting
/
run-backtesting
Run Backtesting
curl --request POST \
  --url http://localhost:8000/backtesting/run-backtesting \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "config": {},
  "start_time": 1735689600,
  "end_time": 1738368000,
  "backtesting_resolution": "1m",
  "trade_cost": 0.0006
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>",
      "input": "<unknown>",
      "ctx": {}
    }
  ]
}

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Body

application/json
config
required
start_time
integer
default:1735689600
end_time
integer
default:1738368000
backtesting_resolution
string
default:1m
trade_cost
number
default:0.0006

Response

Successful Response