Stablecoin peg monitor

$0.003 per call · USDC via x402 · GET /api/stablecoin-peg

Live $1-peg deviation for the top USD stablecoins (USDT, USDC, USDS, DAI, USDe, PYUSD, USDD, TUSD, FDUSD by default, or pass your own list): current price, deviation in basis points, 24h high/low, worst 24h deviation, market cap, and an on-peg / stressed / depegged status. Send GET /api/stablecoin-peg with no required fields (1 optional) and pay $0.003 per call over x402 or MPP (there is no free tier). It returns a JSON object with peg, count and coins.

Backed by CoinGecko's public API.

Category: Crypto & onchain data · Tags: crypto stablecoin peg usdt usdc risk monitoring

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
coinsstringnoOptional comma-separated symbols or CoinGecko ids to check instead of the default top-stablecoin set (e.g. "USDT,USDC"). Max 15.

Example request

curl -i "https://agent402.tools/api/stablecoin-peg"

Without payment this returns HTTP 402 Payment Required with the exact price for stablecoin-peg; any x402 v2 or MPP client pays it and retries.

Example response

{
  "peg": "USD $1.00",
  "count": 2,
  "coins": [
    {
      "id": "tether",
      "symbol": "USDT",
      "name": "Tether",
      "price": 0.998868,
      "deviationBps": -11.32,
      "high24h": 0.999372,
      "low24h": 0.998674,
      "maxDeviation24hBps": 13.26,
      "marketCap": 184092462233,
      "status": "on-peg"
    },
    {
      "id": "usd-coin",
      "symbol": "USDC",
      "name": "USDC",
      "price": 0.999819,
      "deviationBps": -1.81,
      "high24h": 0.999923,
      "low24h": 0.99953,
      "maxDeviation24hBps": 4.7,
      "marketCap": 73033499074,
      "status": "on-peg"
    }
  ]
}
FieldTypeAlways presentIn the example
pegstringyesUSD $1.00
countnumberyes2
coinsarray of objectsyes2 items in the example

From an MCP client

catalog.call {
  "slug": "stablecoin-peg",
  "params": {}
}

The hosted connector at https://agent402.tools/mcp needs a payment for stablecoin-peg; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.

Errors and behavior

Paid call (JavaScript agent)

import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);

const res = await payFetch("https://agent402.tools/api/stablecoin-peg");

Related tools

Stablecoin supply by asset

$0.003 · POST /api/stablecoins

Stablecoins ranked by circulating supply from DefiLlama's free stablecoin dataset: name, symbol, peg currency and type (…

DeFi yield screener

$0.002 · POST /api/defi-yields

Screen DeFi yield pools (lending, LP, staking, vaults) across every chain from DefiLlama's free Yields dataset: filter b…

Stablecoin supply history

$0.002 · POST /api/stablecoin-supply-history

Daily total stablecoin circulating supply (in USD) over time from DefiLlama's free stablecoin charts, for all chains or …

Token balances (named contracts)

$0.002 · POST /api/token-balances

ERC-20 balances of one wallet for a NAMED list of token contracts (1-20) - the targeted complement to the full-portfolio…

Known-address label lookup

FREE w/ compute · or $0.002 · POST /api/address-label

Label a known EVM address from a curated, committed dataset: major stablecoin + token contracts (the USDC and USDG contr…

Wallet token transfers (filtered)

$0.003 · POST /api/asset-transfers

Recent token transfers for a wallet on Base, Ethereum and other EVM chains, newest first. Filtered transfer log for an E…