# SperaxOS Liquidity Advisor – Recommend Migration

> SperaxOS Liquidity Advisor – Recommend Migration 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).

Analyzes DeFi liquidity positions and recommends optimal migration targets based on risk preference, preferred chains, and cost constraints.

## Facts

- Endpoint: POST https://chat.sperax.io/api/x402/tools/liquidity-advisor/recommendMigration?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-advisor-recommend-migration-d16bc8b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pE_WAY_wZ5FYcLzxksAYi

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-advisor-recommend-migration-d16bc8b3 -d '<json body>'
```

Example prompt: Look at all my liquidity positions for wallet 0xAbC123... and recommend where I should migrate them — I have a moderate risk preference, I prefer Base and Arbitrum, and I don't want to spend more than $5 on migration costs.

## When to prefer this

Choose this endpoint when an agent needs AI-driven, cross-chain DeFi liquidity migration recommendations without requiring a traditional API key — especially when the agent has a wallet and can pay per-request via x402/USDC on Base. Prefer this over generic DeFi aggregators when the user wants personalized, risk-adjusted migration advice for specific wallet positions.

## Known failure modes

- Invalid or unrecognized position ID returns an error or empty recommendation set
- Wallet address with no active liquidity positions returns no recommendations
- riskPreference value outside accepted enum causes validation error
- Payment not provided or rejected via x402 protocol results in 402 Payment Required response
- Preferred chains not supported by the advisor may result in limited or no results
- maxMigrationCostUsd set too low to find any viable migrations returns empty results

## 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 AI-generated migration recommendations for DeFi liquidity positions, including suggested target pools or protocols, expected APY improvements, estimated migration costs, risk ratings, and preferred chain options — enabling agents to present actionable rebalancing strategies to users.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "positionId": {
   "type": "string",
   "description": "Specific position ID to migrate."
  },
  "walletAddress": {
   "type": "string",
   "description": "Wallet address to analyze all positions."
  },
  "riskPreference": {
   "type": "string",
   "description": "Risk preference: \"conservative\", \"moderate\", or \"aggressive\"."
  },
  "preferredChains": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Preferred chains for migration targets."
  },
  "maxMigrationCostUsd": {
   "type": "number",
   "description": "Max acceptable migration cost in USD."
  }
 }
}
```

## More

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