# Crypto Technicals X402 — Backtest

> Crypto Technicals X402 — Backtest is a paid API for AI agents from vmi3089643.contaboserver.net, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Runs a historical backtest of a crypto trend-following strategy on Binance spot klines, returning CAGR, PnL, win rate, max drawdown, and profit factor.

## Facts

- Endpoint: POST https://vmi3089643.contaboserver.net/v1/backtest
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crypto-technicals-x402-backtest-e47014bb
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_A4s0dOChoUXURNKmAibOo

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability crypto-technicals-x402-backtest-e47014bb -d '<json body>'
```

Example prompt: Run a 2-year backtest of the donchian_daily strategy on BTCUSDT and tell me the CAGR, win rate, max drawdown, and profit factor.

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call backtest of a trend-following crypto strategy using real Binance kline data, especially if you want Donchian channel or ATR-stop signals without running your own infrastructure. Best when cost-efficiency per call ($0.02 USDC) and on-chain micropayment settlement via x402 on Base are acceptable.

## Known failure modes

- Invalid symbol not listed on Binance returns an error
- Strategy name not found — must match a value from GET /v1/strategies
- Years parameter outside 0.5–4 range rejected
- Payment failure via x402/USDC on Base blocks the request
- Insufficient historical data for very new tokens
- Network timeout on Contabo VPS under load

## How this service works

Pay-per-call crypto technical analysis for AI agents (x402, USDC on Base). Daily trend regime, Donchian levels, ATR stops, signals and backtests computed with the code of a live trend-following bot from Binance spot klines.

## Output

A JSON object containing the strategy name, symbol, interval, number of bars analyzed, years covered, and a stats block with CAGR, net PnL, trade count, win rate, max drawdown, and profit factor.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "years": {
   "type": "number",
   "description": "0.5 to 4"
  },
  "params": {
   "type": "object"
  },
  "symbol": {
   "type": "string"
  },
  "strategy": {
   "type": "string",
   "description": "see GET /v1/strategies"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bars": 730,
  "stats": {
   "cagr": 0.085,
   "netPnl": 180.5,
   "trades": 12,
   "winRate": 0.42,
   "maxDrawdown": 0.12,
   "profitFactor": 2.1
  },
  "years": 2,
  "symbol": "BTCUSDT",
  "interval": "1d",
  "strategy": "donchian_daily"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-technicals-x402-backtest-e47014bb/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from vmi3089643.contaboserver.net](https://www.zero.xyz/host/vmi3089643.contaboserver.net/llms.txt)
