# Otto AI Historical Yield Farming Positions

> Otto AI Historical Yield Farming Positions is a paid API for AI agents from x402.ottoai.services, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Retrieves historical (closed) yield farming positions for an EVM wallet address, including realized yield and exit timestamps across all protocols and chains.

## Facts

- Endpoint: GET https://x402.ottoai.services/yield-farming-historical
- 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/x402-ottoai-services-b2fc852d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1QZmEsyPjCIxTkuCo2f4Z

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 x402-ottoai-services-b2fc852d
```

Example prompt: Can you pull up the full history of closed yield farming positions for my wallet 0xAbC1234567890defABCDEF1234567890abcdef12, including how much yield I realized and when I exited each position?

## When to prefer this

Use this endpoint when you need a retroactive view of a user's DeFi yield farming activity — specifically positions that have already been closed/exited. Prefer this over live portfolio endpoints when the user wants to audit past performance, calculate realized gains, or review historical DeFi engagement across multiple protocols and chains.

## Known failure modes

- Invalid or malformed EVM wallet address returns an error or empty result
- Wallet with no historical yield farming activity returns an empty positions array
- Network timeout or upstream data provider unavailability returns a 5xx error
- Address with only active (not yet closed) positions returns empty historical data

## How this service works

Historical (closed) yield farming positions for a user across all protocols and chains, with realized yield and exit timestamps.

## Output

An array of historical (closed) yield farming positions for the specified wallet, each including the protocol, chain, realized yield earned, and exit timestamp.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "userAddress": "0x1234567890123456789012345678901234567890"
  }
 },
 "output": {
  "type": "object"
 }
}
```

## 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": [
      "userAddress"
     ],
     "properties": {
      "userAddress": {
       "type": "string",
       "description": "EVM wallet address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "status": {
       "type": "string"
      },
      "positions": {
       "type": "array"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-ottoai-services-b2fc852d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.ottoai.services](https://www.zero.xyz/host/x402.ottoai.services/llms.txt)
