# AgenticFi Portfolio Rebalance Suggestions

> AgenticFi Portfolio Rebalance Suggestions 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-10-07).

Returns AI-driven portfolio rebalancing recommendations for a given wallet address, optionally filtered by risk tolerance

## Facts

- Endpoint: GET https://defi-api.agenticfi.wtf/api/agent/portfolio-rebalance/%7Baddress%7D?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-07
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agenticfi-portfolio-rebalance-suggestions-73dfcffd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5NwmcK0APUl4ggSgqGQWo

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-suggestions-73dfcffd
```

Example prompt: Analyze my wallet 0x742d35Cc6634C0532925a3b844Bc454e4438f44e and suggest how I should rebalance my crypto portfolio — I have a low risk tolerance.

## When to prefer this

Use this endpoint when you need AI-generated portfolio rebalancing suggestions for a specific wallet address, especially when you want risk-tolerance-aware recommendations. Prefer this over generic token price or balance endpoints when the user wants actionable allocation guidance rather than raw data.

## Known failure modes

- Invalid or malformed wallet address returns 400 error
- Wallet with no on-chain token holdings may return empty or minimal recommendations
- Unsupported chain or non-EVM address may return error
- Payment failure via x402 returns 402 Payment Required
- Network timeout or upstream DeFi data unavailability returns 503
- Invalid riskTolerance value (not low/medium/high) may return 400 or be ignored

## How this service works

Suggested portfolio rebalance based on current holdings + yield opportunities

## Output

Returns a set of portfolio rebalancing recommendations for the specified wallet, including suggested target allocations, tokens to buy/sell, and a risk-adjusted strategy based on current on-chain holdings and 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-suggestions-73dfcffd/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)
