TL;DR
-
A stablecoin depeg occurs when its price drifts away from the $1.00 peg. Monitoring systems typically trigger alerts at a 0.5% – 1% deviation, and recent depegs have unfolded within hours rather than days. This makes real-time monitoring essential for timely risk detection and effective protection for all market participants exposed to stablecoins.
-
The CoinGecko API provides three data delivery methods to monitor for stablecoin depegs: REST endpoint (/simple/price) for polling, WebSocket (CGSimplePrice) for real-time streaming price updates, and cg.coin.info.updated webhook event for automated notifications.
-
Use the CoinGecko Stablecoins category (390+ coins) to build a dynamic watchlist of all stalecoins beyond just USDT and USDC.
TerraUSD (UST) collapsed from $1.00 to under $0.10 in May 2022, erasing tens of billions in combined UST and LUNA market value. On November 6, 2025, Stables Labs USDX broke its peg, with CoinGecko price data showing a drop from $0.99 to $0.04 within four days. The trigger was a $93M loss at DeFi lending protocol Stream Finance, which cascaded through stablecoins that used it as collateral.
If your protocol, treasury, or wallet holds stablecoin exposure, faster detection of a depeg reduces downside risk and helps prevent capital loss during extreme market stress. In this guide, we’ll explain what causes stablecoin depegs, which assets to monitor, and how to detect them in real time using the CoinGecko API, where you’ll build three detection approaches: REST polling, WebSocket-based streaming, and webhook-driven alerts.

What Is a Stablecoin Depeg?
A stablecoin depeg occurs when a stablecoin’s market price deviates from its target peg, typically $1.00 for USD-pegged assets. In practice, the industry often treats a 0.5% – 1% deviation as an early warning threshold, while severe events can exceed 10% within minutes.
Depegs generally fall into two categories:
-
Soft depeg: A temporary deviation that recovers once arbitrage activity or reserve mechanisms restore the peg, such as USDC’s recovery over three days during the March 2023 banking stress event.
-
Hard depeg: A sustained or permanent loss of the peg, as seen in TerraUSD in May 2022.
Why Do Stablecoins Depeg?
Stablecoin depegs can stem from a few common causes:
-
Collateral failure: The reserves backing the peg become frozen or lose value. USDC fell to ~$0.87 in March 2023 after $3.3B of its reserves were held at Silicon Valley Bank. The peg recovered once the FDIC announced a backstop for the deposits.
-
Algorithmic design failure: The supply mechanism enters a reflexive death spiral. In May 2022, TerraUSD lost its peg as LUNA, the paired token designed to absorb redemptions, hyperinflated and failed to absorb sustained sell pressure.
-
DEX liquidity shock or exploit: A large trade or smart contract exploit drains a DEX pool faster than arbitrage can restore the price. Stables Labs USDX fell from peg to $0.04 in November 2025 after a Balancer V2 pool exploit drained the collateral backing the system.

Stables Labs USDX price, October 31 – November 14, 2025 (US Eastern Time). Source: CoinGecko.
What Are the Top Stablecoins to Monitor?
The CoinGecko API tracks all available stablecoins (390+ stablecoins and growing) under the stablecoins category, which you can pull as a self-refreshing watchlist using the Coins List with Market Data endpoint. This approach is more reliable than hardcoded coin IDs because the list updates automatically without manual maintenance, and it also includes lower-market-cap stablecoins that are statistically far more likely to depeg than USDT or USDC.
To retrieve your stablecoin watchlist in a single API call, pass category=stablecoins to the /coins/markets endpoint.
Here’s what the output looks like:

Paginate (page=2, page=3, …) for full coverage. For risk-targeted watchlists, filter by sub-category:
- usd-stablecoin removes non-USD pegs
- fiat-backed-stablecoin and algorithmic-stablecoin segment by backing mechanism
- yield-bearing-stablecoins flags tokens that trade above $1 by design.
Refer to the full list via the /coins/categories/list endpoint.
How Do You Detect a Stablecoin Depeg in Real Time?
The CoinGecko API offers flexible data delivery methods for detecting stablecoin depegs: REST, WebSocket, and webhooks.
| Method | How It Works | Best for |
|---|---|---|
| REST polling | Real-time (cacheless): detection latency matches your polling interval. | Bulk watchlists of up to 515 coins per API call. |
| WebSocket | Stream for real-time price updates | Live dashboards, low-latency triggers, and push-driven workflows. |
| Webhook | Server posts only when relevant events fire | Event-driven monitoring of coin metadata changes |
Poll For Live Prices via REST API
The CoinGecko API’s /simple/price endpoint is the simplest way to detect stablecoin depegs. Poll the endpoint at a fixed interval, compare each stablecoin’s price against its target peg (e.g., $1.00 for USD-pegged assets), and trigger an alert when the deviation exceeds your defined threshold.
The endpoint supports up to 515 coin IDs per request. Since API usage is charged per request rather than per coin returned, batch your watchlist into one call per polling cycle instead of sending individual requests for each asset. This reduces request overhead and makes monitoring workflows extremely efficient.
Here’s what the output looks like:

For lower-latency price monitoring, CoinGecko offers WebSocket streaming. Webhooks complement price monitoring by notifying applications about relevant metadata changes, such as public notices or asset information updates.
Stream Live Prices via WebSockets
CoinGecko’s WebSocket shifts data delivery from a pull-based polling model to a push-based event stream. Instead of repeatedly polling endpoints, it maintains a persistent connection and streams real-time price updates via the CGSimplePrice channel.
This approach is well suited for applications that require continuously fresh, low-latency data such as alerts, live dashboards, monitoring systems, and real-time market data applications. It improves responsiveness and data continuity compared to periodic snapshot-based approaches where updates only arrive after each request cycle.
To use the WebSocket, subscribe to the channel first, then send a set_tokens action containing the coin IDs from your watchlist.
Example response:

Layer Quality Signals via Webhook Notices
The CoinGecko API provides a cg.coin.info.updated webhook event that triggers on coin metadata changes, including contract migrations, symbol or logo updates, category changes, and public notices. These signals complement REST or WebSocket by adding a metadata-driven quality layer.
A public_notices update on a CoinGecko’s stablecoin’s page indicates that the CoinGecko data team has flagged a notable event, such as a redemption pause, reserve incident, or contract migration. These metadata signals can provide additional context during monitoring workflows.
Example response:

If you need to receive push-based price-threshold events, the cg.coin.price.updated webhook event triggers when a tracked coin crosses a configured price threshold or exhibits abnormal volatility, such as USD-pegged stablecoins deviating from $1.00. This webhook event is currently in private beta – join the waitlist for early access.
Conclusion
The CoinGecko API enables a flexible monitoring architecture for stablecoin price and event tracking built on three complementary data layers: REST polling for fixed-interval checks, WebSocket streams for real-time price updates, and webhooks for metadata signals that can precede market movements. These signals support multi-layer monitoring with threshold-based alerts and depeg detection.
If you want a simple no-code workflow to route depeg alerts to your Telegram, the crypto price alert Telegram bot n8n template sends alert payloads in just a few steps. For earlier depeg detection, the pulling crypto prices from DEXs guide explains how to use DEX data as a cross-validation layer, as stablecoin depegs often appear on decentralized exchanges before aggregated CEX prices adjust. To understand the reason behind a depeg or price volatility event, fetch relevant crypto news with Python and attach headline context to your alert workflow.
Ready to start building? Sign up for a free Demo API plan today to start monitoring stablecoin prices and market movements in real time. As your stablecoin depeg detection pipeline scales, upgrade to a CoinGecko API Analyst plan to access more concurrent WebSocket and webhook connections, higher API call credits and rate limits, along with exclusive endpoints.

