# USD Stablecoin Depeg Monitor

> USD Stablecoin Depeg Monitor is a paid API for AI agents from x402-datashop-production.up.railway.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns DeFiLlama-aggregated peg deviation in basis points and a depeg alert flag for up to 8 major USD stablecoins

## Facts

- Endpoint: GET https://x402-datashop-production.up.railway.app/v1/stables/peg
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/usd-stablecoin-depeg-monitor-12579a0f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RiCPkaZ386ch7wMADKYTQ

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 usd-stablecoin-depeg-monitor-12579a0f
```

Example prompt: Can you check if USDT, USDC, and DAI are still holding their dollar peg right now — specifically the basis-point deviation and whether any depeg alert has been triggered?

## When to prefer this

Use this endpoint when you need a pre-computed, risk-signal view of stablecoin peg health rather than a raw price feed. It is ideal for alerting workflows, risk dashboards, or any agent that needs to quickly determine whether a major USD stablecoin has deviated beyond 50 basis points from $1.00, without having to perform the deviation math yourself. Prefer this over raw oracle feeds (e.g. Pyth) when you want the depeg_alert flag and worst-deviation summary already computed.

## Known failure modes

- Unsupported symbol requested — only USDT, USDC, DAI, FDUSD, TUSD, USDe, PYUSD are valid
- More than 8 symbols requested — max 8 per call
- DeFiLlama upstream unavailable — may return stale or error response
- Payment not included or invalid x402 USDC payment — 402 Payment Required returned
- Network timeout connecting to Railway deployment

## How this service works

Depeg monitor for USD stablecoins (USDT, USDC, DAI, FDUSD, TUSD, USDe, PYUSD): DeFiLlama market-aggregate price per coin, converted to a deviation from 1.0 in basis points, with a depeg_alert flag (triggered beyond 50 bps) and the worst deviation across the set. Query: symbols=USDT,USDC,DAI (max 8, default shown). JSON, 60s cache. Derived risk signal, not a raw feed.

## Output

A JSON object with per-coin peg deviation in basis points, a boolean depeg_alert flag (triggered when deviation exceeds 50 bps), the aggregated market price from DeFiLlama, and the worst deviation across the queried stablecoins. Results are cached for 60 seconds and represent a derived risk signal, not a raw price feed.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "symbols": {
       "type": "string",
       "default": "USDT,USDC,DAI",
       "description": "Comma-separated stablecoins from USDT, USDC, DAI, FDUSD, TUSD, USDE, PYUSD (max 8)"
      }
     }
    }
   },
   "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/usd-stablecoin-depeg-monitor-12579a0f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-datashop-production.up.railway.app](https://www.zero.xyz/host/x402-datashop-production.up.railway.app/llms.txt)
