# SperaxOS Historical Impermanent Loss Attribution Calculator

> SperaxOS Historical Impermanent Loss Attribution Calculator is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-12).

Calculates and attributes historical impermanent loss (IL) for a wallet's liquidity pool positions across DeFi protocols over a specified time period

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/il-calculator/getHistoricalILAttribution?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-historical-impermanent-loss-attribution-calculator-191e6b00
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Rxcp06I5cP26pAteKmAmv

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-historical-impermanent-loss-attribution-calculator-191e6b00 -d '<json body>'
```

Example prompt: Calculate my historical impermanent loss attribution for wallet 0xABC...123 on Base using Uniswap over the last 30 days and break down where the losses came from.

## When to prefer this

Use this endpoint when you need historical, attributable impermanent loss data tied to a specific wallet across DeFi liquidity pools. It is ideal for retrospective analysis of LP performance, portfolio audits, and tax/reporting workflows where you need to know not just total IL but which protocol or chain caused it. Prefer this over generic portfolio trackers when the specific focus is impermanent loss attribution with chain and protocol granularity.

## Known failure modes

- Invalid or unrecognized wallet address returns an error
- Unsupported chain identifier causes a 400-level error
- Very short periodDays with no LP activity returns empty attribution
- Payment failure via x402 returns 402 Payment Required
- Protocol not found or misspelled returns empty or error response
- Wallet with no LP history returns zero or empty IL data

## How this service works

AI-powered DeFi intelligence APIs payable via the x402 HTTP payment protocol. No API key required — pay per request with USDC on Base. Identity-only (SIWX) endpoints are free for wallets with an agentcash identity.

## Output

Returns a breakdown of historical impermanent loss attributed to the specified wallet's liquidity positions, segmented by protocol and/or chain over the requested period, including loss amounts in USD and percentage terms.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "Chain to analyze (or \"all\" for cross-chain)."
  },
  "protocol": {
   "type": "string",
   "description": "Filter to specific protocol."
  },
  "periodDays": {
   "type": "number",
   "description": "Historical period in days. Default: 30."
  },
  "walletAddress": {
   "type": "string",
   "description": "Wallet address to analyze."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-historical-impermanent-loss-attribution-calculator-191e6b00/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)
