# CoinStats Shared Portfolio DeFi Positions

> CoinStats Shared Portfolio DeFi Positions is a paid API for AI agents from x402.coinstats.app, paid per call via x402, $0.04/call, status unknown (last checked 2026-09-14).

Returns DeFi positions (staking, lending, LP pools, yield farming) for a shared CoinStats portfolio identified by a sharetoken header

## Facts

- Endpoint: GET https://x402.coinstats.app/portfolio/defi
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-coinstats-app-0dfd487d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__PjrDgYLgIWiqgABuxvAD

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-coinstats-app-0dfd487d
```

Example prompt: Pull up all the DeFi positions for my CoinStats shared portfolio — I want to see my staking, lending, and LP pool balances across every protocol using my sharetoken.

## When to prefer this

Use this endpoint when you need DeFi-specific positions (staking, lending, LP pools, yield farming) from a CoinStats shared portfolio — distinct from simple token holdings or transaction history. Requires a valid sharetoken from a Degen-plan CoinStats account. Prefer this over general portfolio endpoints when the user specifically needs on-chain protocol-level DeFi breakdowns.

## Known failure modes

- Missing or invalid sharetoken header returns 401 Unauthorized
- Expired or revoked sharetoken returns 403 Forbidden
- Portfolio has no DeFi positions returns empty array
- Non-Degen-plan sharetoken may return 402 or restricted response
- Network timeout or upstream CoinStats service unavailability returns 5xx

## How this service works

CoinStats shared portfolio DeFi positions — staking, lending, LP pools, yield farming across protocols. Requires sharetoken header

## Output

A structured list of DeFi positions held in the shared portfolio, including staking positions, lending deposits, liquidity pool (LP) participations, and yield farming allocations, each with protocol name, asset details, and current balances/values.

## Request schema (JSON Schema)

```json
{
 "properties": {
  "input": {
   "required": [
    "method"
   ],
   "properties": {
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    }
   }
  }
 }
}
```

## More

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