{"uid":"cap_3TEymM3IUmS6LIKROQlMa","slug":"stablecoin-peg-monitor-d500e52c","name":"Stablecoin Peg Monitor","description":"Pay-per-call crypto microdata for trading/onchain AI agents via x402 (USDC on Base): Base gas, token risk, balances, multi-venue prices, Hyperliquid book/funding, kimchi premium. No API keys.","url":"https://kr-x402-mvp.kgy5612.workers.dev/api/stablecoin-peg?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"top":{"type":"integer","maximum":30,"minimum":1,"description":"Top N by supply when no symbols (default 10)"},"symbols":{"type":"string","examples":["USDC,USDT","USDC"],"description":"Comma-separated filter, e.g. USDC,USDT"}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"coins":[{"status":"OK","symbol":"USDC","price_usd":0.99948,"kraken_usd":0.9999,"supply_usd":71356496475,"peg_dev_bps":-5.2,"dominance_pct":24.6,"supply_1d_pct":0.089,"supply_7d_pct":-1.74,"base_supply_usd":4100000000}],"alerts":[],"flow_7d":{"pct":-0.72,"usd":-2100000000},"sources":["https://stablecoins.llama.fi","https://api.kraken.com"],"verdict":"ALL_PEGGED","updated_at":"2026-10-29T12:30:00Z","liquidity_trend":"flat","total_usd_stablecoin_supply":290000000000}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oEfzdHH0gDGJkbpkyaLbG","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns real-time peg status, price deviations, supply trends, and overall peg health verdict for top stablecoins, sourced from DefiLlama and Kraken.","exampleAgentPrompt":"Check whether USDC and USDT are holding their pegs right now — give me the peg deviation in basis points, their current prices, and an overall verdict on whether everything looks healthy.","exampleUseCases":[{"title":"Pre-trade stablecoin health check","prompt":"Before I move $500k of USDC into a Hyperliquid position, check if USDC and USDT are both fully pegged right now and tell me if there are any depeg alerts I should worry about."},{"title":"Stablecoin supply trend dashboard","prompt":"Give me the top 10 stablecoins by supply, their 1-day and 7-day supply changes, and any liquidity trend signals — I want to see if the stablecoin market is growing or contracting this week."},{"title":"Kimchi premium cross-check with peg status","prompt":"I'm running an arb strategy — check the current peg status for USDC and USDT and tell me their peg deviation in basis points so I can factor in any depeg risk before I trade."}],"resultDescription":"A JSON object with a per-coin array (symbol, USD price, Kraken reference price, peg deviation in basis points, supply in USD, 1d/7d supply change %, Base chain supply, dominance %), plus aggregate fields: total stablecoin supply, 7-day flow in USD and %, liquidity trend label, a top-level verdict (e.g. ALL_PEGGED), active alerts, data sources, and timestamp.","failureModes":["Payment not received or x402 handshake fails — returns 402 with payment instructions","Upstream DefiLlama or Kraken API unavailable — partial data or stale cache returned","Invalid symbols parameter (non-existent ticker) — coin may be omitted from results silently","top parameter out of range (must be 1–30) — returns 400 validation error","Network timeout from Cloudflare Worker — returns 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a fast, aggregated stablecoin peg health check with supply-trend context and a machine-readable verdict, without managing API keys. It is purpose-built for AI trading agents and onchain automation that need to gate decisions on stablecoin stability. Prefer it over raw DefiLlama or Kraken calls when you want pre-computed basis-point deviations, dominance stats, and a single verdict field in one pay-per-call request.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:17.710Z","isFirstParty":false,"canonicalSlug":"stablecoin-peg-monitor-d500e52c"}