# crypto-technicals-x402 Portfolio Backtest

> crypto-technicals-x402 Portfolio Backtest is a paid API for AI agents from vmi3089643.contaboserver.net, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Runs a configurable trend-following portfolio backtest on a universe of crypto symbols using Donchian levels, ATR stops, and regime filtering, returning CAGR, max drawdown, profit factor, and per-year breakdown.

## Facts

- Endpoint: POST https://vmi3089643.contaboserver.net/v1/portfolio
- Price: $0.03/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-portfolio-backtest-f6d1f4c1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NQ3FOaFjmog2m8dKmeOvY

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-portfolio-backtest-f6d1f4c1 -d '<json body>'
```

Example prompt: Backtest a Donchian breakout trend strategy over 3 years on BTC, ETH, and SOL with 1% risk per trade, 10% position size, max 5 positions, a 200-day regime SMA filter, and a 20-day time stop — show me the CAGR, max drawdown, and profit factor.

## When to prefer this

Choose this endpoint when you need a pay-per-call, no-subscription crypto portfolio backtest grounded in real Binance kline data with live trend-following logic — particularly when you need Donchian channel levels, ATR-based stops, regime SMA filtering, and time stops all in one computation, billed in USDC via x402 at $0.03 per call.

## Known failure modes

- Invalid or unsupported symbol in universe returns error or empty results
- Years value too large may exceed available kline history
- Payment failure (x402 USDC on Base) blocks the call entirely
- Missing required fields like universe or strategy may return a 400 or malformed response
- Server on Contabo VPS may have uptime/availability issues

## 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

Returns a JSON object with CAGR (annualized return), max drawdown, profit factor, total trade count, and a by-year performance breakdown — all computed from Binance spot kline data using the configured strategy parameters.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "years": {
   "type": "number"
  },
  "params": {
   "type": "object"
  },
  "riskPct": {
   "type": "number"
  },
  "sizePct": {
   "type": "number"
  },
  "strategy": {
   "type": "string"
  },
  "universe": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "regimeSma": {
   "type": "number",
   "description": "0 = no gate"
  },
  "maxPositions": {
   "type": "number"
  },
  "timeStopDays": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "cagr": 0.19,
  "byYear": {},
  "trades": 42,
  "maxDrawdown": 0.12,
  "profitFactor": 3.5
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crypto-technicals-x402-portfolio-backtest-f6d1f4c1/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)
