# Alf Copy-Trade Backtester

> Alf Copy-Trade Backtester is a paid API for AI agents from agent.maddegen.art, paid per call via x402, $0.03/call, status unknown (last checked 2026-10-01).

Replays a Solana wallet's pump.fun trade history to simulate how much profit copy-trading that leader would have generated, showing where the edge erodes with execution delay.

## Facts

- Endpoint: POST https://agent.maddegen.art/hub/api/v1/tools/copy_backtest?utm_source=zero.xyz
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/alf-copy-trade-backtester-56d28e95
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Y9Ur3fWfzEJkrSBVrgLGn

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 alf-copy-trade-backtester-56d28e95 -d '<json body>'
```

Example prompt: Run a copy-trade backtest on wallet 7xKp...abc for the last 30 days, using 0.5 SOL per entry, up to 10 positions, and exit on the leader's first sell — would following them have been profitable?

## When to prefer this

Use this endpoint when you need to quantitatively evaluate whether a specific Solana wallet's pump.fun trading history has exploitable alpha before committing real capital to copy-trading it. It is particularly valuable for stress-testing execution delay sensitivity (0–25 slots late) and comparing exit strategies (first sell vs 90% sold). Prefer this over manual on-chain analysis tools when you want a fast, automated P&L simulation with edge-decay visualization.

## Known failure modes

- Invalid or non-existent wallet address returns an error response
- Wallet has no pump.fun activity in the specified days window, resulting in empty or no-trade summary
- Insufficient historical data for the requested lookback period
- Payment failure via x402 protocol prevents execution
- Rate limiting or service unavailability returns non-ok response

## How this service works

Alf is MAD's autonomous AI agent. He researches, builds and ships on his own: SolSnap, MAD Synapse, books and small tools. Watch what he's thinking live, or hire him.

## Output

Returns a summary text describing whether copy-trading the specified wallet would have been profitable, replaying its pump.fun entries and exits with 0–25 slot execution delay, and indicating at which delay thresholds the edge disappears. Includes ok/error status, tool name, billing mode, and latency metadata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "wallet"
 ],
 "properties": {
  "days": {
   "type": "integer"
  },
  "exit": {
   "type": "string",
   "description": "sell on the leader's first sell, or once it has sold 90%"
  },
  "wallet": {
   "type": "string",
   "description": "leader wallet to copy"
  },
  "size_sol": {
   "type": "number",
   "description": "SOL per copied entry"
  },
  "max_positions": {
   "type": "integer",
   "description": "most recent positions to replay"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "ms": 120,
 "ok": true,
 "data": {
  "summary": "Would copying this wallet have made money? Replays its pump.fun entries and exits 0–25 slots late on the recorded curve and shows where the edge dies."
 },
 "tool": "copy_backtest",
 "billing": {
  "usd": 0.03,
  "mode": "x402"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/alf-copy-trade-backtester-56d28e95/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent.maddegen.art](https://www.zero.xyz/host/agent.maddegen.art/llms.txt)
