# LensCrypt DeFi Yield Rebalance Advisor

> LensCrypt DeFi Yield Rebalance Advisor is a paid API for AI agents from lanescrypt.vercel.app, paid per call via x402, $0.15/call, status unknown (last checked 2026-09-15).

Returns yield rebalancing recommendations for a specified DeFi protocol filtered by a minimum APY threshold

## Facts

- Endpoint: GET https://lanescrypt.vercel.app/api/yields/rebalance
- Price: $0.15/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lenscrypt-defi-yield-rebalance-advisor-56811dc4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7NMwwSdF1UjBNeFGxh40v

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 lenscrypt-defi-yield-rebalance-advisor-56811dc4
```

Example prompt: Check LensCrypt for yield rebalancing suggestions on Aave where the APY is at least 12% — tell me where I should move my liquidity.

## When to prefer this

Use this endpoint when an agent needs to evaluate whether a DeFi user's current yield positions in a specific protocol should be rebalanced given a minimum acceptable APY. Prefer this over generic yield listing endpoints when you need actionable rebalancing guidance rather than raw APY data.

## Known failure modes

- Missing required 'protocol' query parameter returns a 400 or error response
- Missing required 'apy' query parameter returns a 400 or error response
- Invalid or unsupported protocol name returns empty results or an error
- Payment failure via x402/USDC results in a 402 Payment Required response
- Protocol data temporarily unavailable returns a 503 or empty response
- APY threshold set too high returns empty rebalancing suggestions

## How this service works

81 paid REST endpoints covering wallet analytics, DeFi yields, token safety, smart money tracking, whale alerts, sniper detection, GMX perps, Solana tools, protocol stats, gas tracking, DEX quotes, NFT analytics, social signals, and 8 AI-powered endpoints (MiMo V2.5). Pay USDC via x402 protocol on Base.

## Output

A set of yield rebalancing recommendations for the specified DeFi protocol, showing pools or positions that meet or exceed the given APY threshold, along with suggested reallocation strategies.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "protocol",
      "apy"
     ],
     "properties": {
      "apy": {
       "type": "string"
      },
      "protocol": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/lenscrypt-defi-yield-rebalance-advisor-56811dc4/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lanescrypt.vercel.app](https://www.zero.xyz/host/lanescrypt.vercel.app/llms.txt)
