Skip to main content
In March 2023, USDC depegged to 0.87afterSiliconValleyBankcollapsed0.87 after Silicon Valley Bank collapsed — 3.3B of Circle’s reserves were locked. Treasuries holding USDC lost millions in hours. The depeg was detectable within minutes through on-chain price deviation and liquidity signals. This guide shows you how to monitor 600+ pegged tokens in real-time across 7 EVM chains.

Why Depeg Monitoring Matters

Portfolio Protection

Detect depeg risk before it becomes a loss — minutes matter when a stablecoin breaks its peg

Early Warning

Get ahead of the market with 5-minute rating updates across price deviation, liquidity, and volatility

Compliance

Document stablecoin risk for regulatory reporting and treasury management policies
Why teams choose Webacy for depeg monitoring:
  • 600+ pegged tokens — Stablecoins, RWAs, gold-backed, and yield-bearing tokens
  • 5-minute updates — Ratings refresh every 5 minutes using 5 weighted signals (with headroom reserved for future expansion)
  • Multi-factor model — Price deviation (30%), slippage (20%), persistence at 50bp (18%) and 100bp (12%), volatility burst (10%)
  • 7 EVM chains — ETH, ARB, POL, OPT, BASE, BSC, Linea from a single API

Prerequisites

Before implementing depeg monitoring, ensure you have:
  • A Webacy API key (sign up here)
  • Basic familiarity with REST APIs or the Webacy SDK
  • Your treasury, portfolio, or exchange workflow identified for integration points

Screen Stablecoins by Risk Tier

Get an overview of all stablecoins with their current depeg risk rating.
# High-cap stablecoins sorted by risk
curl -X GET "https://api.webacy.com/rwa?sort=score&order=desc&minMcap=1000000000&pageSize=25" \
  -H "x-api-key: YOUR_API_KEY"
Risk tier interpretation:
TierRatingWhat It MeansAction
critical>= 80Severe depeg riskImmediate attention — consider reducing exposure
warning60-79Elevated riskClose monitoring, prepare contingency
watch40-59Early stress signalsTrack trends, increase monitoring frequency
okunder 40Normal conditionsRoutine monitoring
premiumN/ATrading above pegPositive deviation — monitor for reversal

Monitor a Specific Token

Get the full depeg snapshot for a token, including historical time series.
# USDC on Ethereum with 7-day history
curl -X GET "https://api.webacy.com/rwa/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?chain=eth&hours=168" \
  -H "x-api-key: YOUR_API_KEY"
Key response fields:
FieldDescriptionAction
riskScore0-100 composite depeg ratingSet alert thresholds
tierok / watch / warning / critical / premiumQuick categorization
priceCurrent token priceTrack deviation from $1.00
risk.issues[]Array of risk tags with severityUnderstand what’s driving the rating
depegEventsHistorical depeg event recordsAssess track record
timeSeriesRating history over requested periodSpot trends

Build a Stablecoin Risk Dashboard

Filter and aggregate stablecoin risk across your portfolio.
# All stablecoins on Ethereum, sorted by risk
curl -X GET "https://api.webacy.com/rwa?chain=eth&sort=score&order=desc&pageSize=50" \
  -H "x-api-key: YOUR_API_KEY"

# Only tokens in stress (watch tier or worse)
curl -X GET "https://api.webacy.com/rwa?tier=warning&sort=score&order=desc" \
  -H "x-api-key: YOUR_API_KEY"

Complete Integration Workflow

Here’s how depeg monitoring fits into a typical treasury or exchange.

Monitoring Flow

Implementation Example

const API_BASE = 'https://api.webacy.com';
const API_KEY = process.env.WEBACY_API_KEY;

const headers = { 'x-api-key': API_KEY };

// Fetch all stablecoins with risk data
async function fetchStablecoins(chain?: string) {
  const params = new URLSearchParams({
    sort: 'score',
    order: 'desc',
    pageSize: '100',
  });
  if (chain) params.set('chain', chain);

  const res = await fetch(`${API_BASE}/rwa?${params}`, { headers });
  const { data } = await res.json();
  return data;
}

// Get detailed risk for a specific token
async function getTokenDetail(address: string, chain: string, hours = 168) {
  const res = await fetch(
    `${API_BASE}/rwa/${address}?chain=${chain}&hours=${hours}`,
    { headers }
  );
  return res.json();
}

// Classify tokens by risk tier
function classifyRisk(tokens: any[]) {
  const alerts = { critical: [], warning: [], watch: [] };

  for (const token of tokens) {
    if (token.tier === 'critical') alerts.critical.push(token);
    else if (token.tier === 'warning') alerts.warning.push(token);
    else if (token.tier === 'watch') alerts.watch.push(token);
  }

  return alerts;
}

// Monitor a portfolio of stablecoins
async function monitorPortfolio(holdings: { address: string; chain: string }[]) {
  const results = [];

  for (const { address, chain } of holdings) {
    const detail = await getTokenDetail(address, chain);
    results.push({
      symbol: detail.symbol,
      chain,
      riskScore: detail.riskScore,
      tier: detail.tier,
      price: detail.price,
    });
  }

  // Sort by risk (highest first)
  results.sort((a, b) => b.riskScore - a.riskScore);

  for (const token of results) {
    const icon = token.tier === 'critical' ? '!!' :
                 token.tier === 'warning' ? '!' : '-';
    console.log(
      `[${icon}] ${token.symbol} (${token.chain}) — ` +
      `Rating: ${token.riskScore}/100, Price: $${token.price}`
    );
  }

  return results;
}

// Example: monitor a treasury portfolio
await monitorPortfolio([
  { address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48', chain: 'eth' },  // USDC
  { address: '0xdAC17F958D2ee523a2206206994597C13D831ec7', chain: 'eth' },  // USDT
  { address: '0x6B175474E89094C44Da98b954EedeAC495271d0F', chain: 'eth' },  // DAI
]);

API Quick Reference

EndpointUse CaseResponse Time
GET /rwaList all pegged tokens with depeg risk~300ms
GET /rwa/{address}?chain={chain}Full depeg detail with time series~500ms
Authentication:
Header: x-api-key: YOUR_API_KEY
Base URL: https://api.webacy.com
Supported chains: eth, arb, pol, opt, base, bsc, linea

Next Steps

Depeg Monitor API

Full endpoint reference with all query parameters

Vault Risk Screening

Screen and monitor the vaults that hold your stablecoins

Exchange Wallet Screening

Screen deposits and withdrawals for compliance

Risk Tags Reference

Complete list of all risk tags and what they mean