# LensCrypt DeFi Yield Rebalance Suggestions

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

Returns rebalancing recommendations for DeFi yield positions given a target protocol and minimum APY threshold

## Facts

- Endpoint: GET https://tolens.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-suggestions-7e59362a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4nmT1Pq4EJCnHimD5v1o0

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-suggestions-7e59362a
```

Example prompt: Check if I should rebalance my DeFi yield position on Aave — I want at least 8% APY. Give me LensCrypt's rebalancing recommendations.

## When to prefer this

Use this endpoint when you need specific rebalancing guidance for a named DeFi protocol against a minimum APY target. Prefer this over generic yield lookups when the user wants actionable move/stay advice rather than just a list of yields.

## Known failure modes

- Missing required 'protocol' or 'apy' query parameters returns a 400 or validation error
- Unknown or unsupported protocol name may return empty results or an error
- Payment not sent or insufficient USDC results in a 402 Payment Required response
- APY value formatted incorrectly (e.g. non-numeric string) may cause a parsing error
- Protocol data temporarily unavailable returns a 503 or empty dataset

## 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 rebalancing suggestions indicating whether the user should move funds to a different protocol to achieve the specified APY target, likely including current vs. available yield rates and recommended actions.

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