# Stablecoin Peg Monitor

> Stablecoin Peg Monitor is a paid API for AI agents from x402.agentutility.ai, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns real-time price and peg-deviation data for major stablecoins, with depeg alert counts.

## Facts

- Endpoint: POST https://x402.agentutility.ai/stablecoin-peg
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stablecoin-peg-monitor-82219d5d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_j4I_pge4g7htKY6OrjDqo

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-monitor-82219d5d -d '<json body>'
```

Example prompt: Check whether USDC is still holding its dollar peg right now — give me the current price in USD and the deviation in basis points, and flag it if there are any active depeg alerts.

## When to prefer this

Use this endpoint when an agent needs to verify that stablecoins are maintaining their dollar peg in real time, detect depeg events before executing DeFi trades, or monitor stablecoin price stability as a risk signal. Prefer this over on-chain queries for low-latency, aggregated multi-stablecoin peg data at $0.005/call.

## Known failure modes

- Upstream price feed unavailable — returns 503 or empty stablecoins array
- Payment not settled — x402 payment required, returns 402 if USDC not sent
- Rate limit exceeded — returns 429 if called too frequently
- Invalid request body — returns 400 if malformed JSON is submitted

## How this service works

Stablecoin peg monitor. Real-time price + deviation detector for USDT, USDC, DAI, FRAX, PYUSD, FDUSD, USDE, RLUSD. Configurable depeg-alert threshold (basis points). Catches USDC's 2023-style depegs in real time.

## Output

A JSON object containing an array of stablecoins with their current USD price, deviation from peg in basis points, and a total count of active depeg alerts.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {
      "symbols": {
       "type": "array",
       "description": "Stablecoin tickers to check, e.g. [\"USDC\",\"USDT\"]. Optional, max 20; defaults to 8 majors."
      },
      "alert_threshold_bps": {
       "type": "number",
       "description": "Depeg alert threshold in basis points from $1.00. Optional, 1-10000, default 50."
      }
     }
    },
    "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",
     "properties": {
      "stablecoins": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "symbol": {
          "type": "string"
         },
         "price_usd": {
          "type": "number"
         },
         "deviation_bps": {
          "type": "integer"
         }
        }
       }
      },
      "depeg_alert_count": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "stablecoins": [
   {
    "symbol": "USDC",
    "price_usd": 1.0001,
    "deviation_bps": 1
   }
  ],
  "depeg_alert_count": 0
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stablecoin-peg-monitor-82219d5d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentutility.ai](https://www.zero.xyz/host/x402.agentutility.ai/llms.txt)
