Agent (x402)

Run single-asset backtest (x402, $0.10)

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

post/api/v1/agent/backtests/run

Request

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

Request body

strategystring required

Strategy key, e.g. rsi_sma, golden_cross, obv_macd_v2

pairstring required

Crypto asset symbol, e.g. BTCUSDT, ETHUSDT, SOLUSDT

asset_type'crypto' | 'tokenized_equity' | 'tokenized_etf' | 'commodities'
interval'1d' | '2d' | '3d' | '1w' | '1M'
date_fromstring date required

YYYY-MM-DD

date_tostring date

YYYY-MM-DD (default: today UTC)

capitalnumber
paramsobject

Strategy-specific params (see /api/v1/strategies for catalog)

Response

Settled payment + data payload.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.