---
title: "Portfolio optimization context"
method: POST
path: "/v1/agent/optimize-portfolio"
tags: ["Planning"]
---

# Portfolio optimization context

`POST /v1/agent/optimize-portfolio`

## Request

- Base URL: `https://www.farmdash.one/api`
- URL: `https://www.farmdash.one/api/v1/agent/optimize-portfolio`
- Auth: none declared

Personalized protocol-allocation recommendations based on current
positions, budget, and risk preference. Planning output only — it
does not authorize or execute any transaction.

## Headers

- `X-ClawHub-Skill` string

## Request body

- object
  - `budget` number
  - `chains` string[]
  - `currentProtocols` string[]
  - `riskPreference` string

## Response `200`

Ordered allocation recommendations with rationale

## Other responses

- `402`: Free-tier limit exceeded — x402 payment required
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/farmdash/apis/farmdash-agent-api.md) · [All operations](https://skmtc.dev/farmdash/apis/farmdash-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/farmdash/apis/farmdash-agent-api/revisions/96310281f58c?raw)
