{"uid":"cap_IPwkaNb_gnDvqDXhgrfaM","slug":"stablecoin-peg-safety-decision-api-575e5af5","name":"Stablecoin Peg Safety Decision API","description":"Check USDC or USDT peg risk before a Base treasury or payment-asset decision. Send asset, maxDeviationBps and maxDataAgeSeconds to receive SAFE, CAUTION or AVOID, deviation, oracle freshness and reasons from official Chainlink feeds. Deterministic thresholds avoid interpreting raw prices; this checks peg deviation and freshness, not liquidity, redeemability or total stablecoin safety. Price: 0.005 USDC per successful result. Not financial advice.","url":"https://peg.weatherriskapi.com/v1/stablecoin/peg-safety?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"asset":{"enum":["USDC","USDT"],"type":"string","description":"Stablecoin to evaluate using its official Chainlink USD feed on Base Mainnet."},"maxDeviationBps":{"type":"integer","maximum":1000,"minimum":1,"description":"Largest absolute deviation from $1, in basis points, that the caller considers SAFE."},"maxDataAgeSeconds":{"type":"integer","maximum":86400,"minimum":60,"description":"Maximum acceptable age of the Chainlink round. Stale data fails closed and is not charged."}}},"responseSchema":{"type":"json","example":{"asset":"USDC","source":{"pair":"USDC / USD","chainId":8453,"network":"Base Mainnet","provider":"Chainlink Data Feeds","cacheStatus":"MISS"},"reasons":["USDC/USD is 1 bps below the $1 peg.","Decision threshold: SAFE <= 50 bps, CAUTION <= 100 bps, AVOID > 100 bps.","Chainlink round age is 120s, within the requested 86400s maximum."],"decision":"SAFE","priceUsd":"0.9999431","direction":"BELOW","freshness":"FRESH","confidence":"HIGH","disclaimer":"Decision support only; not financial advice, a guarantee of redeemability, or a substitute for independent risk controls.","methodology":{"pegUsd":"1.00","rounding":"conservative-ceiling","avoidAboveBps":100,"safeAtOrBelowBps":50,"cautionAtOrBelowBps":100},"deviationBps":1,"dataAgeSeconds":120,"maxDeviationBps":50,"maxDataAgeSeconds":86400}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_LqnScMY8n6EK3WEQXTeQ-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a SAFE, CAUTION, or AVOID decision for USDC or USDT based on live Chainlink price feed deviation from $1 peg, using caller-defined thresholds.","exampleAgentPrompt":"Before we proceed with the USDC payment, check whether USDC is safe right now — flag it CAUTION or AVOID if it's more than 50 basis points off the $1 peg, and treat any Chainlink data older than 10 minutes as stale.","exampleUseCases":[{"title":"Pre-trade peg check for DeFi agent","prompt":"Before executing that USDC swap, verify USDC is holding its peg — flag it as AVOID if it's more than 100 basis points off $1, and reject any Chainlink data older than 5 minutes."},{"title":"USDT risk gate for payment pipeline","prompt":"I'm about to settle a batch of USDT payments — can you check if USDT is SAFE right now using a max deviation of 75 basis points and a freshness window of 30 minutes?"},{"title":"Stablecoin health dashboard alert","prompt":"Check whether USDC is showing any depeg stress on Base — use a 50 bps safe threshold and 100 bps caution threshold, and only trust Chainlink data from the last 15 minutes."}],"resultDescription":"A JSON object containing the peg safety decision (SAFE, CAUTION, or AVOID), the current USD price, deviation in basis points and direction (ABOVE/BELOW), data freshness status (FRESH/STALE), confidence level, human-readable reasons explaining the decision, and methodology thresholds used. Stale or unavailable data fails closed without charge.","failureModes":["Chainlink data exceeds maxDataAgeSeconds — fails closed, returns error, no charge","Chainlink feed unavailable or reverted — fails closed without settlement","Invalid asset enum value — request rejected","maxDeviationBps or maxDataAgeSeconds out of allowed range — validation error","Network/connectivity issues reaching Base Mainnet — service unavailable error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a deterministic, threshold-based peg safety signal — not just a raw price — before taking action on USDC or USDT on Base Mainnet. Ideal when you want caller-controlled SAFE/CAUTION/AVOID classification with configurable deviation and staleness limits, backed by Chainlink's canonical oracle. Prefer over raw price feeds when you need an opinionated go/no-go decision with auditable reasoning rather than a number to interpret yourself.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:35:10.082Z","isFirstParty":false,"canonicalSlug":"stablecoin-peg-safety-decision-api-575e5af5"}