# LensCrypt DeFi Yield Rebalance Advisor

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

Returns rebalancing recommendations for DeFi yield positions based on a specified protocol and target APY threshold

## Facts

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

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-8df77d60
```

Example prompt: Check LensCrypt's yield rebalance endpoint for Aave and tell me if I should move my position to hit at least 8% APY.

## When to prefer this

Use this endpoint when an agent needs actionable DeFi yield rebalancing advice for a specific protocol against a target APY — particularly useful for automated portfolio management, yield farming bots, or periodic DeFi position reviews. Prefer this over generic yield aggregators when you need a single opinionated rebalancing recommendation rather than a raw list of yields.

## Known failure modes

- Missing required query parameters (protocol or apy) returns a 400 error
- Unknown or unsupported protocol name returns an empty or error response
- Payment failure via x402 protocol results in 402 response before data is returned
- Very new or low-liquidity protocols may have incomplete or stale APY data
- APY threshold set unrealistically high may return no viable alternatives

## 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 a rebalancing recommendation including current APY data for the specified protocol, comparison against the target APY, and suggested actions or alternative protocols to consider for improved yield.

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