# CoinStats DeFi Positions by Wallet

> CoinStats DeFi Positions by Wallet 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 for a wallet address — staked, lent, borrowed, and LP balances across protocols like Aave, Lido, Uniswap, and Curve

## Facts

- Endpoint: GET https://x402.coinstats.app/wallet/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-a997860c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7PuM0WQM_92RfggUCVWBp

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-a997860c
```

Example prompt: Can you pull up all the DeFi positions for my wallet 0xABC...123 — I want to see everything staked, lent, borrowed, and in liquidity pools across protocols like Aave, Lido, and Uniswap?

## When to prefer this

Use this endpoint when you need a comprehensive, multi-protocol DeFi position snapshot for a specific wallet — covering staking, lending, borrowing, and LP positions in one call. Prefer this over building per-protocol lookups manually. Best suited for portfolio dashboards, DeFi risk analysis, or yield tracking agents.

## Known failure modes

- Invalid or malformed wallet address returns an error or empty result
- Unsupported blockchain not indexed by CoinStats returns no data
- Wallet with no DeFi activity returns an empty positions array
- Payment not completed (x402 flow incomplete) results in 402 response
- Rate limiting or upstream data lag may cause stale or missing protocol data

## How this service works

CoinStats DeFi positions for a wallet — staked, lent, borrowed, LP balances across protocols (Aave, Lido, Uniswap, Curve, etc.)

## Output

Returns a structured breakdown of all DeFi positions held by the wallet: staked assets (e.g. Lido stETH), lending/borrowing positions (e.g. Aave), liquidity pool shares (e.g. Uniswap v3, Curve), with protocol names and USD values for each position.

## 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-a997860c/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)
