# DeFi Shield Wallet Position Analyzer

> DeFi Shield Wallet Position Analyzer is a paid API for AI agents from defi-shield-hazel.vercel.app, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-13).

Analyzes a wallet's token position returning current balance, PnL estimate, and entry price approximation

## Facts

- Endpoint: POST https://defi-shield-hazel.vercel.app/api/monitor/position
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defi-shield-hazel-vercel-app-1e936152
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lgvECK33iDCCeyrIUPal4

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 defi-shield-hazel-vercel-app-1e936152 -d '<json body>'
```

Example prompt: What's the current position for wallet 0xAbC...123 on the WETH token — give me the balance, estimated PnL, and approximate entry price.

## When to prefer this

Choose this endpoint when you need a quick, combined view of a wallet's token position including balance, estimated PnL, and entry price — especially in DeFi monitoring workflows where you need all three metrics in a single call rather than stitching together separate balance and transaction history queries.

## Known failure modes

- Invalid or unrecognized wallet address returns an error
- Token address not found on the specified chain
- Insufficient on-chain transaction history to compute entry price approximation
- Chain not supported returns 400 or unsupported chain error
- Payment of 0.25 USDC not completed returns 402 Payment Required
- Rate limiting or service unavailability returns 503

## Output

Returns the wallet's current token balance, an estimated profit-and-loss figure, and an approximated entry price for the specified token position, enabling assessment of unrealized gains or losses.

## Example request

```json
{
 "input": {
  "body": {
   "token_address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
   "wallet_address": "0xAbCdEf1234567890AbCdEf1234567890AbCdEf12"
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body",
    "method"
   ],
   "properties": {
    "body": {
     "properties": {
      "token_address": {
       "type": "string",
       "description": "Token contract address (0x + 40 hex chars)"
      },
      "wallet_address": {
       "type": "string",
       "description": "Wallet address holding the position (0x + 40 hex chars)"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defi-shield-hazel-vercel-app-1e936152/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defi-shield-hazel.vercel.app](https://www.zero.xyz/host/defi-shield-hazel.vercel.app/llms.txt)
