# Strategy Signals Crypto Backtester

> Strategy Signals Crypto Backtester is a paid API for AI agents from strategysignals.duckdns.org, paid per call via x402, $0.15/call, status unknown (last checked 2026-09-14).

Runs a configurable SMA-crossover with trailing-stop backtest on BTC, ETH, or SOL and returns full performance metrics plus an equity curve

## Facts

- Endpoint: POST https://strategysignals.duckdns.org/tools/strategy-backtest
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/strategy-signals-crypto-backtester-64dbaa56
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6VndUWxqF4VXZ2bABgoVU

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 strategy-signals-crypto-backtester-64dbaa56 -d '<json body>'
```

Example prompt: Run a backtest on ETH starting January 1 2021 through July 1 2026 using a 150-day SMA, 14-day cooldown, 20% trailing stop, and $1,000 starting capital, and tell me the total return, Sharpe ratio, and max drawdown.

## When to prefer this

Choose this endpoint when you need a transparent, parameter-configurable SMA+trailing-stop backtest on BTC, ETH, or SOL with independently verifiable results and a full equity curve — particularly when you want to validate published strategy claims or tune parameters like cooldown days and trailing stop percentage rather than trusting a black-box signal provider.

## Known failure modes

- Invalid asset symbol — only BTC, ETH, SOL are supported; returns validation error
- Date range outside available historical data — actual_start/actual_end may differ from requested
- Malformed ISO date strings — endpoint returns 400-level error
- Starting capital or parameter values out of acceptable range — validation error
- Service unavailable on duckdns host — DNS or uptime failures possible for self-hosted endpoint
- Payment not completed via x402 — request blocked without $0.25 USDC payment

## How this service works

What would $1,000 have become if you'd followed this rule historically? On-demand parameterized backtest of the 200-day-SMA + trailing-stop methodology against real historical data -- caller supplies asset, SMA period, trailing-stop %, cooldown, and date range; returns real computed performance metrics and equity curve.

## Output

Returns the asset tested, all strategy parameters used, a metrics object with total_return_pct, final_equity, sharpe_ratio, win_rate, max_drawdown_pct, and total_trades, the actual data period covered, and a timestamped equity_curve array showing portfolio value over time.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "end": {
   "type": "string",
   "description": "optional ISO date"
  },
  "asset": {
   "enum": [
    "BTC",
    "ETH",
    "SOL",
    "XRP",
    "ADA"
   ],
   "type": "string"
  },
  "start": {
   "type": "string",
   "description": "optional ISO date"
  },
  "cooldown_days": {
   "type": "integer"
  },
  "sma_period_days": {
   "type": "integer"
  },
  "starting_capital": {
   "type": "number"
  },
  "trailing_stop_pct": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asset": "ETH",
  "params": {
   "cooldown_days": 14,
   "sma_period_days": 150,
   "starting_capital": 1000,
   "trailing_stop_pct": 0.2
  },
  "metrics": {
   "win_rate": 0.643,
   "final_equity": 2842,
   "sharpe_ratio": 0.91,
   "total_trades": 14,
   "max_drawdown_pct": 0.384,
   "starting_capital": 1000,
   "total_return_pct": 1.842
  },
  "data_period": {
   "years": 5.5,
   "actual_end": "2026-07-01",
   "actual_start": "2021-01-01",
   "requested_end": "2026-07-01",
   "requested_start": "2021-01-01"
  },
  "equity_curve": [
   {
    "equity": 1000,
    "timestamp": "2021-01-01T00:00:00+00:00"
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/strategy-signals-crypto-backtester-64dbaa56/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from strategysignals.duckdns.org](https://www.zero.xyz/host/strategysignals.duckdns.org/llms.txt)
