{"uid":"cap_vJdynw5S7TEiPgwp4y6wU","slug":"stablecoin-peg-liquidity-monitor-4ca26eb0","name":"Stablecoin Peg & Liquidity 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/defillama/stablecoins?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_YN32Je8tA_SVgdnJsBGgt","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, supply metrics, and systemic risk verdict for top USD stablecoins (USDC, USDT, DAI, USDe) with Kraken cross-checks and flow trends.","exampleAgentPrompt":"Before I park my funds in USDC and USDT, check whether they're both holding their $1 peg — I need the peg deviation in basis points, current status, supply trend over the last 7 days, and an overall verdict on whether it's safe to proceed.","exampleUseCases":[{"title":"Pre-settlement stablecoin safety check","prompt":"I'm about to convert $50k into USDC and USDT to park overnight — can you check if both are holding their peg right now, and flag anything that looks like a depeg or drift?"},{"title":"Trading loop systemic risk-off signal","prompt":"Run a stablecoin liquidity check for me — is total stablecoin supply growing or shrinking over the last 7 days, and what's the overall verdict: all pegged, watch, or depeg alert?"},{"title":"DAI depeg alert monitoring","prompt":"Check the current peg status for DAI specifically — what's its price, deviation in basis points, and has its supply changed significantly in the last day?"}],"resultDescription":"A JSON object with per-coin entries (symbol, price_usd, peg_dev_bps, status OK/DRIFT/WARN/DEPEG, Kraken cross-check price, supply_usd, 1d/7d supply change %, dominance_pct, base_supply_usd), plus aggregate fields: total stablecoin supply, flow data over 1d/7d/30d, liquidity_trend (growing/flat/shrinking), a verdict (ALL_PEGGED/WATCH/DEPEG_ALERT), active alerts array, data sources, and updated_at timestamp.","failureModes":["DefiLlama API unavailable — stale or missing supply data","Kraken API unavailable — cross-check prices absent, status may degrade","Invalid symbols parameter — returns empty coins array or 400 error","top N out of range (must be 1-30) — validation error","Network timeout from Cloudflare Worker — 503 or empty response"],"whenToPreferThis":"Choose this endpoint when an agent needs a fast, pre-validated stablecoin health signal before settling funds, executing a DeFi trade, or running a systemic risk check in a trading loop. It combines DefiLlama supply data with Kraken exchange cross-validation in a single call, returning a machine-readable verdict (ALL_PEGGED/WATCH/DEPEG_ALERT) and basis-point peg deviation — far more actionable than polling raw price feeds separately. Prefer it over generic crypto price endpoints when the specific question is peg integrity and liquidity direction, not spot trading price.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:25.194Z","isFirstParty":false,"canonicalSlug":"stablecoin-peg-liquidity-monitor-4ca26eb0"}