Skip to main content
POST
/
public
/
v1
/
backtests
Queue a backtest run
curl --request POST \
  --url https://api.example.com/public/v1/backtests \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "strategyVersionId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "config": {
    "timeframe": "1h",
    "signalInstrument": {
      "symbol": "BTCUSDT"
    },
    "range": {
      "start": 1704067200000,
      "end": 1735689600000
    },
    "initialBalance": 10000,
    "execution": {
      "entryOrderRole": "taker",
      "exitOrderRole": "taker",
      "riskOrderRole": "taker",
      "feeModel": {
        "kind": "tiered_maker_taker",
        "tiers": [
          {
            "minCumulativeNotional": 0,
            "makerRate": 0.001,
            "takerRate": 0.001
          }
        ]
      },
      "slippage": {
        "kind": "none"
      }
    },
    "ambiguityResolution": "multi_resolution",
    "ambiguityFallback": "pessimistic"
  }
}
'

Authorizations

x-api-key
string
header
required

Workspace API key for public agent API access

Body

application/json
strategyVersionId
string<uuid>
required
config
object
required

Response

201

Backtest job created