# Stablecoin Peg Monitor & Supply Flow

> Stablecoin Peg Monitor & Supply Flow is a paid API for AI agents from kr-x402-mvp.kgy5612.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-31).

Returns real-time peg status, supply metrics, and systemic risk verdict for top USD stablecoins (USDC, USDT, DAI, USDe) including Kraken cross-check prices and liquidity trend.

## Facts

- Endpoint: GET https://kr-x402-mvp.kgy5612.workers.dev/crypto/stablecoin-peg?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/stablecoin-peg-monitor-supply-flow-28184b15
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S2yjgW7a7E2t4Jh4gyEAT

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-supply-flow-28184b15
```

Example prompt: Before I move funds into USDC and USDT, check if they're both holding their $1 peg — give me the peg deviation in basis points, the Kraken cross-check, and whether the overall stablecoin verdict is ALL_PEGGED or something worse.

## When to prefer this

Choose this endpoint when you need a single consolidated stablecoin health check that combines on-chain supply data (DefiLlama) with a CEX price cross-check (Kraken) and returns a machine-readable verdict and alerts — ideal for trading agents doing pre-settlement risk checks or systemic risk-off detection in a loop. Prefer over querying DefiLlama and Kraken separately when you want peg deviation in basis points, Base chain supply, and a unified ALL_PEGGED/WATCH/DEPEG_ALERT verdict in one $0.001 call.

## Known failure modes

- Upstream DefiLlama API unavailable — stale or missing supply data
- Kraken API timeout — kraken_usd field may be null for USDT/USDC/DAI
- Invalid symbol in comma-separated list — unknown symbols silently dropped or error returned
- top parameter out of range (must be 1–30) — validation error
- Rate limit or x402 payment failure — 402 Payment Required response

## How this service works

Is USDC / USDT / DAI / USDe holding its $1 peg, and is stablecoin liquidity growing (risk-on) or shrinking (risk-off)? Top USD stablecoins: price, peg deviation in bps, status OK|DRIFT|WARN|DEPEG, Kraken cross-check for USDT/USDC/DAI, supply + 1d/7d change, dominance, supply on Base; plus total supply flow 1d/7d/30d, verdict ALL_PEGGED|WATCH|DEPEG_ALERT and alerts. When to call: before settling or parking funds in a stablecoin, as a systemic risk-off check in a trading loop.

## Output

A JSON object with an array of stablecoin records (symbol, price_usd, kraken_usd, peg_dev_bps, status OK/DRIFT/WARN/DEPEG, supply_usd, supply_1d_pct, supply_7d_pct, dominance_pct, base_supply_usd), plus total supply flow over 1d/7d/30d, a liquidity_trend label (growing/flat/shrinking), an overall verdict (ALL_PEGGED, WATCH, or DEPEG_ALERT), an alerts array for any anomalies, data sources, and an updated_at timestamp.

## 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": {
      "top": {
       "type": "integer",
       "maximum": 30,
       "minimum": 1,
       "description": "Top N by supply when no symbols (default 10)"
      },
      "symbols": {
       "type": "string",
       "examples": [
        "USDC,USDT",
        "USDC"
       ],
       "description": "Comma-separated filter, e.g. USDC,USDT"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "coins": [
   {
    "status": "OK",
    "symbol": "USDC",
    "price_usd": 0.99948,
    "kraken_usd": 0.9999,
    "supply_usd": 71356496475,
    "peg_dev_bps": -5.2,
    "dominance_pct": 24.6,
    "supply_1d_pct": 0.089,
    "supply_7d_pct": -1.74,
    "base_supply_usd": 4100000000
   }
  ],
  "alerts": [],
  "flow_7d": {
   "pct": -0.72,
   "usd": -2100000000
  },
  "sources": [
   "https://stablecoins.llama.fi",
   "https://api.kraken.com"
  ],
  "verdict": "ALL_PEGGED",
  "updated_at": "2026-10-29T12:30:00Z",
  "liquidity_trend": "flat",
  "total_usd_stablecoin_supply": 290000000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/stablecoin-peg-monitor-supply-flow-28184b15/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from kr-x402-mvp.kgy5612.workers.dev](https://www.zero.xyz/host/kr-x402-mvp.kgy5612.workers.dev/llms.txt)
