# Stablecoin Peg Monitor

> Stablecoin Peg Monitor is a paid API for AI agents from x402.botsmith.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-09-14).

Returns a live peg-and-supply snapshot for a given stablecoin symbol, including current price, peg deviation in basis points, depeg alert flag, and circulating supply by chain.

## Facts

- Endpoint: GET https://x402.botsmith.dev/stablecoin/peg
- Price: $0.015/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-monitor-3fd0e478
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C1kDoCJOviLGMRMIn4WYQ

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-3fd0e478
```

Example prompt: Before I move funds, can you check if USDC is holding its dollar peg right now — give me the current price, how many basis points it's off, whether there's a depeg alert, and how the circulating supply breaks down by chain?

## When to prefer this

Use this endpoint when an agent needs to verify stablecoin peg health before settling a transaction, holding value, or making a DeFi decision. Preferred over general crypto price APIs because it specifically provides peg deviation in basis points, depeg alert flags, circulating supply, and cross-chain supply breakdowns — purpose-built for stablecoin risk assessment rather than general price feeds.

## Known failure modes

- Unknown or misspelled symbol returns a 404 or empty result
- Stablecoin data source temporarily unavailable returns an error
- Price data unavailable returns null for price and pegDeviationBps fields
- Symbol ambiguous if substring matches multiple assets — use exact ticker

## How this service works

Stablecoin Peg Monitor ($0.015/call): Live peg-and-supply snapshot for any stablecoin by symbol (USDC, USDT, DAI, ...): current price, signed deviation from peg in basis points, a depeg alert at 1%, total circulating supply and its top-chain breakdown. Keyless. Useful before settling or holding value in a given stablecoin.

## Output

Returns a JSON object with the stablecoin's id, name, symbol, peg type (e.g. peggedUSD), peg mechanism (fiat-backed, crypto-backed, algorithmic), current price, peg target, signed peg deviation in basis points, a boolean depeg alert (true when deviation >= 100 bps), total circulating supply in USD, and an array of top chains with per-chain circulating supply and share of total supply, plus total chain count.

## 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",
       "maxLength": 40,
       "minLength": 1,
       "description": "Stablecoin symbol (USDC, USDT, DAI) or name substring"
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "id",
      "symbol",
      "name",
      "pegType",
      "pegMechanism",
      "price",
      "pegTarget",
      "pegDeviationBps",
      "depegAlert",
      "circulatingUsd",
      "topChains",
      "chainCount"
     ],
     "properties": {
      "id": {
       "type": "string"
      },
      "name": {
       "type": "string"
      },
      "price": {
       "anyOf": [
        {
         "type": "number"
        },
        {
         "type": "null"
        }
       ],
       "description": "Latest price in the peg currency"
      },
      "symbol": {
       "type": "string"
      },
      "pegType": {
       "type": "string",
       "description": "e.g. peggedUSD, peggedEUR"
      },
      "pegTarget": {
       "type": "number",
       "description": "Intended peg value (1 for USD stablecoins)"
      },
      "topChains": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "chain",
         "circulatingUsd",
         "share"
        ],
        "properties": {
         "chain": {
          "type": "string"
         },
         "share": {
          "type": "number",
          "description": "Fraction of total supply on this chain"
         },
         "circulatingUsd": {
          "type": "number"
         }
        },
        "additionalProperties": false
       },
       "description": "Top chains by circulating supply"
      },
      "chainCount": {
       "type": "integer",
       "maximum": 9007199254740991,
       "minimum": -9007199254740991,
       "description": "Chains 
… (truncated)
```

## More

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