# LensCrypt DeFi Yield Rebalance Recommendations

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

Returns DeFi yield rebalancing suggestions for a given protocol and minimum APY target

## Facts

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

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-recommendations-abd00084
```

Example prompt: Check LensCrypt's yield rebalance endpoint for Aave and tell me if there are better opportunities paying above 8% APY that I should move my funds to.

## When to prefer this

Use this endpoint when an agent needs to evaluate whether a user's current DeFi position should be moved to a higher-yielding protocol. Best suited for portfolio rebalancing logic, yield optimization workflows, or when comparing a specific protocol's APY against a minimum acceptable threshold.

## Known failure modes

- Missing required query params 'protocol' or 'apy' returns 400 error
- Invalid protocol name returns empty or error response
- Payment not completed via x402 returns 402 Payment Required
- Protocol data temporarily unavailable returns 500 or empty result
- APY value not a valid numeric string causes malformed request

## 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

Returns yield rebalancing recommendations for the specified DeFi protocol, including comparison of current and alternative APY opportunities above the given threshold, helping identify where to move liquidity for better returns.

## 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-recommendations-abd00084/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from lensc.vercel.app](https://www.zero.xyz/host/lensc.vercel.app/llms.txt)
