# RagRadar DeFi Yield Rebalance Advisor

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

Returns AI-powered DeFi yield rebalancing recommendations based on your current protocol and APY

## Facts

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

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 ragradar-defi-yield-rebalance-advisor-2cc48366
```

Example prompt: I'm currently earning 4.2% APY on Aave — can you check if I should rebalance to a better yield protocol right now?

## When to prefer this

Choose this endpoint when you need a quick AI-driven yield rebalancing decision for a specific DeFi position — you know your current protocol and APY and want to know if moving elsewhere is worth it. Prefer this over manual yield aggregators when you want a single actionable recommendation rather than raw APY tables.

## Known failure modes

- Missing required apy parameter returns 400 error
- Invalid protocol name returns no matching protocol data
- Very high or nonsensical APY values may return empty or misleading recommendations
- Service unavailable if Vercel deployment is cold-starting (latency spike)
- Payment not fulfilled returns 402 Payment Required

## How this service works

AI-powered on-chain analytics across Base, Arbitrum, and Solana. 82 REST endpoints including Portfolio P&L tracker, smart money tracking, whale alerts, token intelligence, DeFi yields, Solana degen tools, social signals, gas tracker, approvals scanner, block checker.

## Output

Returns an AI-generated rebalancing recommendation indicating whether the user should stay in their current DeFi protocol or move to a higher-yielding alternative, along with comparative APY data and suggested target protocols across Base, Arbitrum, or Solana.

## Example request

```json
{
 "apy": 4.2,
 "protocol": "Aave"
}
```

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

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "current",
  "timestamp",
  "alternatives",
  "recommendation"
 ],
 "properties": {
  "current": {
   "type": "object",
   "required": [
    "apy",
    "protocol"
   ],
   "properties": {
    "apy": {
     "type": "number"
    },
    "protocol": {
     "type": "string"
    }
   }
  },
  "timestamp": {
   "type": "string"
  },
  "alternatives": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "IL",
     "apy",
     "name",
     "pool",
     "asset",
     "chain",
     "tvlUsd",
     "apyBase",
     "exposure",
     "protocol",
     "apyReward",
     "stablecoin"
    ],
    "properties": {
     "IL": {
      "type": "string"
     },
     "apy": {
      "type": "number"
     },
     "name": {
      "type": "string"
     },
     "pool": {
      "type": "string"
     },
     "asset": {
      "type": "string"
     },
     "chain": {
      "type": "string"
     },
     "tvlUsd": {
      "type": "number"
     },
     "apyBase": {
      "type": "number"
     },
     "exposure": {
      "type": "string"
     },
     "protocol": {
      "type": "string"
     },
     "apyReward": {
      "type": "null"
     },
     "stablecoin": {
      "type": "boolean"
     }
    }
   }
  },
  "recommendation": {
   "type": "object",
   "required": [
    "risk",
    "action",
    "target",
    "improvement"
   ],
   "properties": {
    "risk": {
     "type": "string"
    },
    "action": {
     "type": "string"
    },
    "target": {
     "type": "object",
     "required": [
      "IL",
      "apy",
      "name",
      "pool",
      "asset",
      "chain",
      "tvlUsd",
      "apyBase",
      "exposure",
      "protocol",
      "apyReward",
      "stablecoin"
     ],
     "properties": {
      "IL": {
       "type": "string"
      },
      "apy": {
       "type": "number"
      },
      "name": {
       "type": "string"
      },
      "pool": {
       "type": "string"
      },
      "asset": {
       "type": "string"
      },
      "chain": {
       "type": "string"
      },
      "tvlUsd": {
       "type": "number"
      },
      "apyBase": {
       "type": "number"
      },
      "exposure": {
       "type": "string"
      },
      "protocol": {
       "type": "string"
      },
      "apyReward": {
       "type": "null"
      },
      "stablecoin": {
       "type": "boolean"
      }
     }
    },
    "improvement": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

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