# SperaxOS Yield Optimizer – Historical Yield Analysis

> SperaxOS Yield Optimizer – Historical Yield Analysis is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-12-01).

Returns historical APY/yield data for a specified DeFi pool or protocol over a configurable time window

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/yield-optimizer/getHistoricalYieldAnalysis?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-yield-optimizer-historical-yield-analysis-8097b5e2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j8pSJUvPZzONqPArMr694

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-optimizer-historical-yield-analysis-8097b5e2 -d '<json body>'
```

Example prompt: Can you pull the historical yield data for Aave V3 on Ethereum over the last 60 days so I can see how the APY has trended?

## When to prefer this

Use this endpoint when you need historical yield/APY data for a specific DeFi pool or protocol to evaluate past performance, identify trends, or make informed allocation decisions. Prefer this over real-time yield endpoints when trend analysis over days or weeks is the goal. Best suited for DeFi research workflows where DefiLlama-indexed pools are the target.

## Known failure modes

- Unknown pool or protocol name returns an error or empty result — use exact DefiLlama pool IDs for precision
- Invalid or negative days value may return a validation error
- Protocol not indexed by DefiLlama may yield no data
- Network or upstream data provider outages may result in incomplete time series
- Requesting very long histories (e.g. 365+ days) may time out or return partial data

## 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

A time-series dataset of historical yield (APY) values for the specified pool or protocol, covering the requested number of days. Likely includes daily or periodic rate snapshots, aggregate statistics such as average or min/max APY, and trend indicators to help assess yield stability and performance over time.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "days": {
   "type": "number",
   "description": "Number of days of history. Default: 30."
  },
  "pool": {
   "type": "string",
   "description": "Pool name or DefiLlama pool ID."
  },
  "protocol": {
   "type": "string",
   "description": "Protocol name (e.g. \"Aave V3\", \"Lido\")."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-yield-optimizer-historical-yield-analysis-8097b5e2/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)
