# SperaxOS Yield Strategy Backtester

> SperaxOS Yield Strategy Backtester is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-21).

Backtests a DeFi yield strategy on a specific DefiLlama pool over a historical date range to estimate returns on a given investment amount

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/yield-optimizer/backtestStrategy?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-yield-strategy-backtester-d51314ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_e_y3Q-hnpSNUpvrq6q6OO

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 speraxos-yield-strategy-backtester-d51314ed -d '<json body>'
```

Example prompt: Can you backtest a yield strategy for pool ID abc123-def456 on Arbitrum with $10,000 invested from September 17, 2025 to March 17, 2026, so I can see what the historical returns would have been?

## When to prefer this

Use this endpoint when you need historical simulation of a DeFi yield strategy before committing real capital — specifically when you have a DefiLlama pool UUID and want to evaluate how a fixed investment would have performed over a custom date range. Prefer this over live yield queries when the goal is risk assessment, strategy comparison, or validating AI-generated yield recommendations with real historical data.

## Known failure modes

- Invalid or unknown pool UUID returns an error — use findOptimalYield first to discover valid pool IDs
- Date range outside available historical data returns no results or partial data
- Investment amount of zero or negative triggers validation error
- Unsupported chain hint may cause lookup failure
- Network or payment errors (x402 protocol) result in failed call without charge

## How this service works

SperaxOS is an AI-powered DeFi operating system — track portfolios, execute swaps, analyze on-chain data, and collaborate with intelligent agents that manage your crypto workflow.

## Output

Returns historical backtested performance data for the specified DeFi pool and date range, including simulated yield returns, effective APY, and strategy metrics based on the given investment amount

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "Optional chain hint (e.g. \"Arbitrum\")."
  },
  "amount": {
   "type": "number",
   "description": "Investment amount in USD (e.g. 10000)."
  },
  "poolId": {
   "type": "string",
   "description": "DefiLlama pool UUID. If not known, use findOptimalYield first to discover pool IDs."
  },
  "endDate": {
   "type": "string",
   "description": "End date ISO string (e.g. \"2026-03-17\")."
  },
  "startDate": {
   "type": "string",
   "description": "Start date ISO string (e.g. \"2025-09-17\")."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-yield-strategy-backtester-d51314ed/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chat.sperax.io](https://www.zero.xyz/host/chat.sperax.io/llms.txt)
