---
title: "Run single-asset backtest (x402, $0.10)"
method: POST
path: "/api/v1/agent/backtests/run"
tags: ["Agent (x402)"]
---

# Run single-asset backtest (x402, $0.10)

`POST /api/v1/agent/backtests/run`

## Request

- Base URL: `https://tradingstrategies.work`
- URL: `https://tradingstrategies.work/api/v1/agent/backtests/run`
- Auth: none declared

Execute one strategy on one asset/timeframe. Returns inline results (CAGR, win-rate, drawdown, trades). No persistence for anonymous callers — bookmark via REST + Bearer if needed.

**Pricing:** $0.10 USDC pay-per-call (x402). No account / no API key.
On-demand backtest, computed inline (no DB-persistence for anonymous x402 callers).

## Request body

- object
  - `strategy` string, required: Strategy key, e.g. rsi_sma, golden_cross, obv_macd_v2
  - `pair` string, required: Crypto asset symbol, e.g. BTCUSDT, ETHUSDT, SOLUSDT
  - `asset_type` 'crypto' | 'tokenized_equity' | 'tokenized_etf' | 'commodities'
  - `interval` '1d' | '2d' | '3d' | '1w' | '1M'
  - `date_from` string, date, required: YYYY-MM-DD
  - `date_to` string, date: YYYY-MM-DD (default: today UTC)
  - `capital` number
  - `params` object: Strategy-specific params (see /api/v1/strategies for catalog)
  - `filters` object
    - `wma200` boolean
    - `atr_mode` 'off' | 'low' | 'high' | 'expansion'
    - `altcoin_season_mode` 'off' | 'aggressive' | 'conservative'
    - `bullmarket_stage_mode` 'off' | 'early' | 'confirmed' | 'strict'
    - `min_profit_guard_threshold` number, nullable

## Response `200`

Settled payment + data payload.

- object

## Other responses

- `400`: Invalid input — fehlt Pflichtfeld oder Wert außerhalb des erlaubten Bereichs.
- `401`: Unauthenticated — kein gültiger Bearer-Token im Authorization-Header.
- `402`: Payment required. Body + `payment-required` header contain payment-instructions (network, payTo, amount, asset).
- `403`: Tier-Insufficient — Endpoint braucht höheren API-Tier. Response enthält upgrade_url.
- `404`: Not-Found — Resource existiert nicht oder gehört nicht dem aktuellen User.
- `429`: Rate-Limit überschritten — Tier-Quota (hourly/daily) oder Per-Endpoint-Quota erreicht. Retry-After-Header gesetzt.
- `500`: Internal Error.
- `503`: Upstream-Failure — Datenquelle nicht erreichbar (Binance, EODHD, etc.).

---

[API](https://skmtc.dev/tradingstrategies/apis/backtesting-arena-public-api.md) · [All operations](https://skmtc.dev/tradingstrategies/apis/backtesting-arena-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tradingstrategies/apis/backtesting-arena-public-api/revisions/f82e8d6eecd7?raw)
