# Stablecoin Peg Monitor

> Stablecoin Peg Monitor is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-02).

Returns live USD prices, basis-point deviation from $1, and depeg flags for USDC, USDT, and DAI stablecoins

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/stablecoin-peg-monitor?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stablecoin-peg-monitor-87b07d82
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5lb5k7BrFiCVYEQTf_MHe

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-87b07d82
```

Example prompt: Check the current peg status of USDC, USDT, and DAI — give me their USD prices, how many basis points they're off from $1, and flag any that are depegged using a threshold of 10 basis points.

## When to prefer this

Choose this endpoint when you need real-time, quantified stablecoin peg health — specifically basis-point deviation and depeg flags — for USDC, USDT, and/or DAI. Prefer it over generic crypto price APIs when you need peg-specific analytics (not just raw price), depeg alerting logic, or cross-stablecoin spread data in a single call. Best suited for DeFi risk checks, automated monitoring agents, and pre-trade safety validation.

## Known failure modes

- Invalid symbol value (not usdc/usdt/dai) returns validation error
- threshold_bps below 0 rejected
- Network or Cloudflare Worker timeout returns 5xx
- Payment failure (x402) blocks response if USDC payment not settled
- Stale or cached data when upstream price feed is delayed (cached: true in response)

## How this service works

Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.

## Output

A JSON object with per-coin entries (symbol, USD price, deviation in basis points, depegged boolean), a list of active depeg flags, cross-check spreads between pairs (e.g. usdc_usdt), the threshold_bps used, a timestamp (as_of_ms), and a cached indicator showing whether data is fresh or served from cache.

## 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",
     "properties": {
      "symbols": {
       "type": "array",
       "items": {
        "enum": [
         "usdc",
         "usdt",
         "dai"
        ],
        "type": "string"
       },
       "default": [
        "usdc",
        "usdt",
        "dai"
       ],
       "maxItems": 3,
       "minItems": 1
      },
      "threshold_bps": {
       "type": "number",
       "default": 10,
       "minimum": 0
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "coins": [
   {
    "source": "coinbase-spot",
    "symbol": "usdc",
    "depegged": false,
    "price_usd": 1,
    "deviation_bps": 0
   }
  ],
  "flags": [],
  "cached": false,
  "product": "scanpay.stablecoin_peg",
  "as_of_ms": 1793491200000,
  "price_usd": 0.001,
  "cross_checks": {
   "usdc_usdt": {
    "price": 1,
    "deviation_bps": 0
   }
  },
  "threshold_bps": 10
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stablecoin-peg-monitor-87b07d82/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-edge.alextaghiashvili.workers.dev](https://www.zero.xyz/host/scanpay-edge.alextaghiashvili.workers.dev/llms.txt)
