# Stablecoin Peg Deviation Checker

> Stablecoin Peg Deviation Checker is a paid API for AI agents from data.japanagent.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Returns the live price, deviation in basis points, and a depeg flag for a given stablecoin symbol using DefiLlama data.

## Facts

- Endpoint: GET https://data.japanagent.dev/defi/stablecoin-peg
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stablecoin-peg-deviation-checker-9d78db1c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6daP42ZJ1Mvk5WAfSagdo

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 stablecoin-peg-deviation-checker-9d78db1c
```

Example prompt: Before I accept this payment, check whether USDT is currently depegged — give me the live price and how many basis points it's off from $1.

## When to prefer this

Use this endpoint when an agent needs to verify stablecoin peg integrity before executing a transaction, holding a position, or accepting payment in a stablecoin. Preferred over general crypto price endpoints because it specifically computes basis-point deviation and raises a depeg flag, making risk decisions programmatic rather than manual.

## Known failure modes

- Unknown or unsupported stablecoin symbol returns an error or empty result
- DefiLlama data temporarily unavailable causes stale or missing price data
- Malformed symbol parameter (e.g. lowercase or with $ prefix) may not match expected format
- Network timeout results in no response

## How this service works

Check a stablecoin's current peg deviation. Returns live price, deviation in basis points, and a depeg flag (>50bps). For agents holding or accepting stablecoins that need to detect a depeg before transacting. Data from DefiLlama.

## Output

Returns the stablecoin's current live price in USD, its deviation from the $1 peg expressed in basis points, and a boolean depeg flag that is set to true if the deviation exceeds 50 basis points.

## 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": [
      "symbol"
     ],
     "properties": {
      "symbol": {
       "type": "string",
       "description": "Stablecoin symbol (USDC, USDT, DAI, ...)"
      }
     }
    }
   },
   "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/stablecoin-peg-deviation-checker-9d78db1c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from data.japanagent.dev](https://www.zero.xyz/host/data.japanagent.dev/llms.txt)
