# Position Health Check

> Position Health Check is a paid API for AI agents from 402.com.tr, paid per call via x402, $0.04/call, status unknown (last checked 2026-09-14).

Given a token address, position size, and optional entry price, returns live price, P&L, exit liquidity status, rug score, and a combined health verdict (healthy/watch/exit_now) for an open DeFi position.

## Facts

- Endpoint: GET https://402.com.tr/api/x402/position-health
- 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/position-health-check-57b028c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IwJ3Yk5OL3Ylpp3FzsVAV

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 position-health-check-57b028c0
```

Example prompt: Check the position health on token 0x4ed4E862860beD51a9570b96d89aF5E1B0Efefed — I'm holding a $500 position and my entry price was $0.0012. Tell me if I can still exit at that size and what the current rug score looks like.

## When to prefer this

Use this endpoint when you need a post-purchase, real-time combined risk assessment for an existing open position — not just entry screening. It uniquely combines exit liquidity, live P&L, and rug scoring into a single actionable verdict, making it ideal for automated hold/exit decision loops. Prefer it over individual contract or holder analysis endpoints when speed and a unified go/no-go signal matter more than granular forensics.

## Known failure modes

- Invalid or non-existent token contract address returns an error or empty result
- Token has no liquidity data, making exit assessment impossible
- Very small or illiquid tokens may have unreliable rug scores
- Missing required 'address' query parameter returns a 400-level error
- Network congestion on Base may cause stale price data
- Position size too small or too large for meaningful impact analysis

## How this service works

The post-trade check everything else skips: given a token, your position size and (optionally) entry price, returns live price & P&L, whether the position can still be EXITED at that size, and the token's current rug score — combined into a healthy / watch / exit_now verdict with reasons. The risk that changes after you buy is exactly the risk holders miss.

## Output

Returns live token price, estimated P&L (if entry price provided), a boolean or status for whether the position can be exited at the given size, the token's current rug score, and an overall verdict of 'healthy', 'watch', or 'exit_now' with human-readable reasons explaining the assessment.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "size": {
       "type": "string",
       "description": "Position size USD"
      },
      "address": {
       "type": "string",
       "description": "Token contract address"
      },
      "entryPrice": {
       "type": "string",
       "description": "Entry price USD (optional, enables P&L)"
      }
     }
    }
   },
   "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/position-health-check-57b028c0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402.com.tr](https://www.zero.xyz/host/402.com.tr/llms.txt)
