# SperaxOS IL Calculator – Track Position Impermanent Loss

> SperaxOS IL Calculator – Track Position Impermanent Loss is a paid API for AI agents from chat.sperax.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Calculates and tracks impermanent loss (IL) for a specific on-chain liquidity position across DeFi protocols like Uniswap V3, Curve, and Balancer.

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/il-calculator/trackPositionIL?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/speraxos-il-calculator-track-position-impermanent-loss-cc59b219
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RCIPVNph3R0TXFLWBqCBK

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-il-calculator-track-position-impermanent-loss-cc59b219 -d '<json body>'
```

Example prompt: What's my current impermanent loss on my Uniswap V3 position (NFT ID 845321) on Ethereum? My wallet is 0xAbC123...

## When to prefer this

Choose this endpoint when you need to quantify impermanent loss for a specific on-chain LP position on supported protocols (Uniswap V3, Curve, Balancer) across chains like Ethereum and Arbitrum. It is pay-per-call via x402 with no API key required, making it ideal for agentic workflows that need on-demand IL tracking without subscription overhead.

## Known failure modes

- Invalid or unsupported chain name returns error
- Unrecognized protocol name returns error
- Position ID not found on-chain returns not found error
- Pool address does not match wallet's position returns empty or error
- Payment of 0.005 USDC via x402 fails, request is rejected with 402 status
- Network RPC errors or on-chain data unavailability cause timeouts

## 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 the computed impermanent loss for the specified liquidity position, including IL percentage, dollar value lost relative to a hold strategy, current token composition, and position value metrics.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string",
   "description": "Chain name (e.g. \"ethereum\", \"arbitrum\")."
  },
  "protocol": {
   "type": "string",
   "description": "Protocol name (e.g. \"uniswap_v3\", \"curve\", \"balancer\")."
  },
  "positionId": {
   "type": "string",
   "description": "On-chain position ID or NFT token ID (for Uni V3)."
  },
  "poolAddress": {
   "type": "string",
   "description": "Pool contract address (alternative to positionId)."
  },
  "walletAddress": {
   "type": "string",
   "description": "Wallet address that owns the position."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-il-calculator-track-position-impermanent-loss-cc59b219/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)
