{"uid":"cap_rWYkz8VRaz9-B6XPptYdV","slug":"stablecoin-market-data-api-x402-67c05643","name":"Stablecoin Market Data API (x402)","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/v1/crypto/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_lpnZrBqB0S8e_ylWeml3E","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 market metrics including peg deviation, supply trends, dominance, and liquidity verdict for top stablecoins, paid per-call via x402 USDC micropayment.","exampleAgentPrompt":"Check the peg health and supply trends for USDC and USDT right now — are either of them showing any depeg alerts or unusual liquidity changes?","exampleUseCases":[{"title":"Depeg risk check before trade","prompt":"Before I swap into USDC, can you quickly check if it's holding its peg and whether there are any stablecoin alerts I should know about?"},{"title":"Stablecoin dominance comparison","prompt":"Show me the top 5 stablecoins by supply right now — I want to see their dominance percentages and whether any are gaining or losing ground over the past 7 days."},{"title":"Onchain agent liquidity sanity check","prompt":"Pull the current stablecoin market overview for USDC and USDT — I need peg deviation in basis points, 7-day supply flow, and the overall verdict before my agent executes a large swap."}],"resultDescription":"Returns a JSON object with a list of stablecoin entries (symbol, USD price, Kraken reference price, peg deviation in basis points, total supply USD, dominance %, 1d/7d supply change %, Base chain supply), plus aggregate fields: total stablecoin supply, 7-day flow (USD and %), liquidity trend label, overall verdict (e.g. ALL_PEGGED), any active alerts, data sources, and timestamp.","failureModes":["Payment not submitted or x402 handshake fails — 402 Payment Required response","Invalid symbol string causes empty coins array","top parameter out of 1-30 range — 400 Bad Request","Upstream DefiLlama or Kraken API unavailable — stale or missing data","Rate limit or worker timeout on high-load periods"],"whenToPreferThis":"Choose this endpoint when your agent needs real-time stablecoin peg health, supply dynamics, and market dominance without requiring an API key — especially useful for trading bots or onchain agents that already transact in USDC on Base and can pay the $0.001 micropayment via x402. Prefer this over general crypto price APIs when stablecoin-specific signals (peg deviation bps, supply flow, depeg verdict) are the primary concern.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:22.212Z","isFirstParty":false,"canonicalSlug":"stablecoin-market-data-api-x402-86fe2a79"}