{"uid":"cap_cmlNlwGjxPN4OnNwZv4kZ","slug":"stablecoin-flows-peg-health-monitor-ba9945ee","name":"Stablecoin Flows & Peg Health 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-flows?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_10zxj9nBpKodlnwOu52AF","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 stablecoin supply, peg deviation, 7-day flow trends, and dominance metrics for top stablecoins, with an overall peg verdict.","exampleAgentPrompt":"Check whether USDC and USDT are holding their pegs right now, and show me the 7-day supply flow and dominance for each.","exampleUseCases":[{"title":"Stablecoin depeg risk alert","prompt":"Are any of the top 5 stablecoins showing significant peg deviation right now? Flag anything more than 20 bps off."},{"title":"DeFi liquidity trend check","prompt":"Has overall stablecoin supply been growing or shrinking over the past 7 days, and what's the total market size?"},{"title":"USDC vs USDT supply comparison","prompt":"Pull the latest supply, peg deviation, and 7-day flow for USDC and USDT so I can compare them."}],"resultDescription":"A JSON object containing per-coin data (symbol, price_usd, peg deviation in bps, total supply, 7d supply flow %, Base chain supply, dominance %), plus aggregate fields: total stablecoin supply, 7d flow in USD and %, liquidity trend label, an overall verdict (e.g. ALL_PEGGED), any active alerts, data sources, and a timestamp.","failureModes":["Upstream DefiLlama or Kraken API unavailable — stale or missing data returned","Invalid symbol in 'symbols' param — coin may be silently omitted from results","'top' param out of range (>30 or <1) — rejected with validation error","x402 payment failure — 402 response returned before data is served","No stablecoin data freshness guarantee — 'updated_at' may be several minutes old during congestion"],"whenToPreferThis":"Choose this endpoint when you need a fast, no-API-key, pay-per-call snapshot of stablecoin peg health and supply flows — especially inside an onchain AI agent that already handles x402/USDC micropayments. It's ideal for depeg monitoring, DeFi risk assessment, or liquidity trend analysis. Prefer alternatives if you need tick-by-tick price feeds, order book depth, or non-stablecoin assets.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:16.610Z","isFirstParty":false,"canonicalSlug":"stablecoin-flows-peg-health-monitor-ba9945ee"}