# SperaxOS Liquidity Migration Simulator

> SperaxOS Liquidity Migration Simulator 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).

Simulates migrating a DeFi liquidity position to a new pool, chain, or protocol with optional new price range bounds, returning projected outcomes before execution.

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/liquidity-advisor/simulateMigration?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-liquidity-migration-simulator-7edcc95e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4K6CGI-Zggwus99XLFjyv

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-liquidity-migration-simulator-7edcc95e -d '<json body>'
```

Example prompt: Simulate migrating my liquidity position (ID: 0xabc123) to the Aerodrome USDC/ETH pool on Base, targeting a new price range between 1800 and 2200.

## When to prefer this

Use this endpoint when a DeFi user or agent wants to preview the outcome of a liquidity position migration before committing on-chain. Ideal for agents optimizing yield across protocols or chains, or repositioning concentrated liquidity ranges. Prefer this over generic DeFi analytics when you need simulation tied to a specific existing position ID and a concrete migration target.

## Known failure modes

- Invalid or non-existent position ID returns an error
- Target pool address not found or unsupported returns 404-equivalent
- Incompatible chain or protocol combination returns validation error
- Price range bounds invalid (lower >= upper) returns schema error
- Insufficient USDC balance for $0.02 payment causes x402 payment failure
- Target protocol not supported returns unsupported protocol error

## 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 simulation of the proposed liquidity migration, including projected fee earnings, impermanent loss estimates, expected APY in the target pool/range, and any migration cost breakdown — without actually executing the move.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "positionId": {
   "type": "string",
   "description": "Source position ID."
  },
  "targetPool": {
   "type": "string",
   "description": "Target pool address."
  },
  "targetChain": {
   "type": "string",
   "description": "Target chain."
  },
  "newPriceLower": {
   "type": "number",
   "description": "For concentrated liquidity: new range lower bound."
  },
  "newPriceUpper": {
   "type": "number",
   "description": "For concentrated liquidity: new range upper bound."
  },
  "targetProtocol": {
   "type": "string",
   "description": "Target protocol."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/speraxos-liquidity-migration-simulator-7edcc95e/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)
