# DeFi Safety Oracle – Paper Backtest

> DeFi Safety Oracle – Paper Backtest is a paid API for AI agents from oracle.cyberwarex.com, paid per call via x402, $0.05/call, status unknown (last checked 2026-10-10).

Simulates what would have happened trading every new token under a given filter rule over a chosen holding horizon, returning win rate, returns, drawdown, crash rate, and a baseline comparison with fees included.

## Facts

- Endpoint: GET https://oracle.cyberwarex.com/v1/paper/backtest?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-safety-oracle-paper-backtest-c49d3c11
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_olRfsBMV_a-INLKYb4Kr0

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 defi-safety-oracle-paper-backtest-c49d3c11
```

Example prompt: Run a paper backtest using the avoid_farms preset on Base with a 6-hour hold horizon and a $5000 starting bankroll, then show me the win rate, average return, drawdown, and how it compares to the all-tokens baseline.

## When to prefer this

Use this endpoint when you need a quantitative, fee-adjusted simulation of how a specific token-screening rule would have performed on real historical token launches — especially when you want a built-in baseline comparison and don't want to manage your own historical on-chain data pipeline. Prefer it over general backtesting platforms when the focus is new-token rug/honeypot filtering logic on Base or Solana.

## Known failure modes

- Invalid preset name returns a parameter error
- Bankroll outside 100–10,000,000 USD range rejected
- horizon value other than 1, 6, or 24 rejected
- Conflicting filter combinations (e.g. farm=only with lp=locked) may return zero trades
- since_days too large may time out or return sparse data
- Payment failure (x402) if insufficient USDC balance

## How this service works

Paper test ($0.05): what would have happened if you had followed a rule on every new token we found? Pick a preset (avoid_farms, locked_pools_only, clean_checks, small_pools_only, farms_only, everything) or set your own filters, a horizon of 1, 6 or 24 hours and a bankroll. Returns trades, win rate with interval, average and median return, drawdown, crash rate, and the same numbers for ALL tokens as a baseline, with fees and price impact charged.

## Output

Returns a list of simulated trades and aggregate statistics for the filtered token set (win rate with confidence interval, average return, median return, drawdown, crash rate) alongside identical baseline stats for ALL tokens discovered in the same period, both figures net of estimated fees and price impact.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "lp": {
       "type": "string",
       "description": "locked | any"
      },
      "farm": {
       "type": "string",
       "description": "exclude | only | any"
      },
      "chain": {
       "type": "string",
       "description": "all | base | solana"
      },
      "preset": {
       "type": "string",
       "description": "everything | avoid_farms | locked_pools_only | clean_checks | small_pools_only | farms_only"
      },
      "horizon": {
       "type": "integer",
       "description": "hours to hold: 1, 6 or 24"
      },
      "max_liq": {
       "type": "number"
      },
      "min_liq": {
       "type": "number"
      },
      "bankroll": {
       "type": "number",
       "description": "starting bankroll in USD, 100 to 10000000"
      },
      "size_pct": {
       "type": "number",
       "description": "share of equity per trade, 0.0005 to 0.05 (default 0.005)"
      },
      "max_top10": {
       "type": "number"
      },
      "since_days": {
       "type": "integer"
      },
      "exclude_kit": {
       "type": "boolean"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "data": {
       "type": "object"
      },
      "result": {
       "type": "object"
      },
      "verdict": {
       "type": "string"
      },
      "baseline_all_tokens": {
       "type": "object"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-safety-oracle-paper-backtest-c49d3c11/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from oracle.cyberwarex.com](https://www.zero.xyz/host/oracle.cyberwarex.com/llms.txt)
