# SilverbackDeFi Backtest

> SilverbackDeFi Backtest is a paid API for AI agents from x402.silverbackdefi.app, paid per call via x402, $0.1/call, status down (last checked 2026-09-15).

Runs a backtest simulation of a DeFi trading strategy against historical on-chain data

## Facts

- Endpoint: POST https://x402.silverbackdefi.app/api/v1/backtest
- Price: $0.1/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-silverbackdefi-app-5185604c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nR3z7cJOsFSxrufq4IhjL

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 x402-silverbackdefi-app-5185604c -d '<json body>'
```

Example prompt: Backtest a simple momentum strategy on ETH/USDC on Base chain — buy when price crosses above the 20-period moving average and sell when it drops below — over the last 90 days, and show me the PnL, win rate, and max drawdown.

## When to prefer this

Use this endpoint when you need to evaluate a DeFi trading strategy's historical performance on Base chain before deploying real capital. Prefer this over live trading endpoints when the goal is risk-free simulation, strategy validation, or comparing parameter variations. Especially useful for quant-style agents optimizing entry/exit rules for on-chain token pairs.

## Known failure modes

- Invalid or unsupported token pair returns a 400 error
- Time range extends beyond available historical data causing partial or empty results
- Malformed strategy parameters result in a validation error
- Unsupported chain or DEX returns a 422 error
- Payment not received or invalid USDC amount returns a 402 Payment Required error

## Output

Returns historical backtest performance metrics for the submitted trading strategy, including total PnL, win rate, maximum drawdown, number of trades executed, and a trade-by-trade history over the specified time range.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-silverbackdefi-app-5185604c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.silverbackdefi.app](https://www.zero.xyz/host/x402.silverbackdefi.app/llms.txt)
