Stablecoin Depeg Monitor - Peg Deviation Alerts avatar

Stablecoin Depeg Monitor - Peg Deviation Alerts

Pricing

from $8.50 / 1,000 watch runs

Go to Apify Store
Stablecoin Depeg Monitor - Peg Deviation Alerts

Stablecoin Depeg Monitor - Peg Deviation Alerts

Watch stablecoins vs their $1 peg. Each run reads keyless public prices (CoinGecko, cross-checked on Coinbase) and alerts when a coin crosses into a worse peg state or beyond your threshold. Schedule + webhook for a standing depeg alarm. Read-only, agent-callable.

Pricing

from $8.50 / 1,000 watch runs

Rating

0.0

(0)

Developer

Centor Prat

Centor Prat

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Categories

Security

Limited permissions

Share

Stablecoin Depeg Monitor — Peg Deviation Alerts

Know the moment a stablecoin slips its peg. Watch a basket of stablecoins and each run reads keyless public prices, measures the deviation from $1.00, classifies the peg state, and — because it remembers the previous run — alerts when a coin crosses into a worse state or beyond your threshold. Anything off-peg is cross-checked on a second source so a single bad print doesn't cry wolf. Schedule it + set a webhook for a standing depeg alarm. Read-only, keyless, agent-callable.

For treasuries, funds, DeFi users, risk/ops, and AI agents that need a de-peg trigger.

Factual price observations, not financial advice.

What it does

  • Reads prices for your stablecoins (keyless CoinGecko) in one call, with 24h change.
  • Measures pegDeviationPct = (price − 1) × 100 and classifies: on-peg → minor-deviation → depeg-warning → depeg → severe-depeg.
  • Cross-checks anything off-peg against Coinbase spot (a second independent source) before alerting.
  • Diffs vs the previous run (named KV store) and alerts only when a coin worsens or breaks your threshold. First run = silent baseline.
FieldMeaning
priceUsd, pegDeviationPct, change24hPctcurrent price, distance from peg, 24h move
pegStateon-peg / minor-deviation / depeg-warning / depeg / severe-depeg
coinbasePriceUsd, crossConfirmedsecond-source check (when off peg)
signalbaseline / on-peg / … / depeg-alert

Why not just ask an AI agent?

An agent has no memory and no scheduler, and would trust a single price feed. This keeps per-coin state across runs, measures deviation consistently, and confirms a depeg on a second exchange before alerting — so you get a reliable trigger, not a false alarm off one wick.

Input

FieldTypeDefaultDescription
stablecoinsarrayUSDT, USDC, DAI, FDUSD, PYUSD, FRAX, USDESymbols or CoinGecko ids.
depegThresholdPctnumber1.0Alert at ≥ this % from $1.
webhookUrlstringPOST depeg alerts here.

Example input

{ "stablecoins": ["USDT", "USDC", "DAI", "FDUSD", "PYUSD"], "depegThresholdPct": 1.0 }

Output

One record per stablecoin. Example (real run, on-peg):

{
"stablecoin": "USDT",
"signal": "on-peg",
"priceUsd": 0.998865,
"pegDeviationPct": -0.1135,
"change24hPct": -0.03,
"pegState": "on-peg"
}

When a coin breaks peg: signal: "depeg-alert", pegState: "depeg" (or severe-depeg), with coinbasePriceUsd + crossConfirmed and the previousState it moved from.

Alerts / scheduling

  1. Set stablecoins, depegThresholdPct and webhookUrl.
  2. Schedule the actor (e.g. every 2–10 min).
  3. First run is a silent baseline; after that, any coin that worsens past your threshold (and confirms on a second source) is POSTed to Slack/Discord/email via Make/Zapier.

Ready-made tasks

For AI agents / MCP

https://mcp.apify.com/?tools=actors,docs,centorprat/stablecoin-depeg-monitor

Loads as centorprat--stablecoin-depeg-monitor. Claude Code:

claude mcp add apify -- npx -y @apify/actors-mcp-server --actors centorprat/stablecoin-depeg-monitor

FAQ

Which stablecoins? Any on CoinGecko — pass symbols (USDT, USDC, DAI, FDUSD, PYUSD, TUSD, FRAX, USDE, …) or CoinGecko ids.

How does it avoid false alarms? Anything off-peg is re-checked on Coinbase spot; an alert needs the second source to agree (when available).

Does it need a key? No — keyless public price APIs.

Does the first run alert? No — it's a silent baseline.

Cost? Pay-per-event: a base per run + a premium per depeg alert. Quiet runs cost only the base.

Data & attribution

Public price data via the keyless CoinGecko API, cross-checked against Coinbase spot. No keys, no personal data. Factual observations, not financial advice.