# AgenticFi Portfolio Rebalance Advisor

> AgenticFi Portfolio Rebalance Advisor is a paid API for AI agents from defi-api.agenticfi.wtf, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns a suggested portfolio rebalance plan based on a wallet's current DeFi holdings and available yield opportunities

## Facts

- Endpoint: GET https://defi-api.agenticfi.wtf/api/agent/portfolio-rebalance/:address
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenticfi-portfolio-rebalance-advisor-ebab11f7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lmXwj3vIQ-uhd6Inbp7De

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 agenticfi-portfolio-rebalance-advisor-ebab11f7
```

Example prompt: Can you analyze my DeFi portfolio at 0x742d35Cc6634C0532925a3b844Bc454e4438f44e and suggest how I should rebalance it to maximize yield — I have a medium risk tolerance?

## When to prefer this

Use this endpoint when an AI agent needs to proactively suggest portfolio optimizations for a DeFi user based on their actual on-chain holdings. Ideal when the user wants actionable rebalancing steps rather than just raw position data. Prefer over generic token price endpoints when the goal is holistic portfolio strategy with yield context.

## Known failure modes

- Invalid or malformed wallet address returns 400 error
- Wallet address with no on-chain DeFi holdings may return empty or minimal recommendations
- Unsupported blockchain network for the given address returns error
- Payment failure via x402 protocol results in 402 Payment Required
- Service unavailable or DeFi data provider outage returns 503

## How this service works

Suggested portfolio rebalance based on current holdings + yield opportunities

## Output

A structured rebalance recommendation including the wallet's current token holdings breakdown, suggested target allocations, identified yield opportunities across DeFi protocols, and specific trade suggestions to move from current to optimal allocation, optionally tailored to the specified risk tolerance level.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "pathParams",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "title": "address (required)",
       "description": "Required. Wallet address Examples: 0x742d35Cc6634C0532925a3b844Bc454e4438f44e, 0x1111111111111111111111111111111111111111"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "title": "address (required)",
       "description": "Required. Wallet address Examples: 0x742d35Cc6634C0532925a3b844Bc454e4438f44e, 0x1111111111111111111111111111111111111111"
      },
      "riskTolerance": {
       "type": "string",
       "title": "riskTolerance (optional)",
       "description": "Optional. low, medium, high"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agenticfi-portfolio-rebalance-advisor-ebab11f7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-api.agenticfi.wtf](https://www.zero.xyz/host/defi-api.agenticfi.wtf/llms.txt)
