{"uid":"cap_CpwyGN0r7hWB1wwXB4GAD","slug":"stablecoin-netflow-peg-health-monitor-6624c51e","name":"Stablecoin Netflow & 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/v1/smart-money/netflow?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_5OyWKBqu4XXQdNaBtKrTd","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 stablecoin supply flows, peg deviation, dominance, and liquidity trend for top stablecoins or a specified symbol set, paid via x402 USDC micropayment.","exampleAgentPrompt":"Check stablecoin netflow and peg health for USDC and USDT — tell me the 7-day supply change, peg deviation in basis points, and whether there are any depeg alerts right now.","exampleUseCases":[{"title":"Depeg alert before large USDC transfer","prompt":"Before I move $500k of USDC, check if USDC is still pegged — give me the peg deviation in bps and any active alerts."},{"title":"Weekly stablecoin flow report for DeFi strategy","prompt":"Pull the 7-day netflow and supply change for USDC and USDT so I can decide whether stablecoin liquidity is expanding or contracting this week."},{"title":"Dominance check for portfolio rebalancing","prompt":"What's the current dominance percentage and total supply for the top 5 stablecoins? I want to see if USDC or USDT has been gaining ground lately."}],"resultDescription":"Returns a JSON object with per-coin data (symbol, USD price, Kraken USD price, supply in USD, peg deviation in bps, dominance %, 1d and 7d supply change %, Base chain supply), plus aggregate 7-day flow (USD + %), total stablecoin supply, liquidity trend label, a peg verdict (e.g. ALL_PEGGED), any active alerts, data sources, and an updated_at timestamp.","failureModes":["Payment not included or insufficient — returns HTTP 402 requiring x402 USDC payment on Base","Invalid symbols parameter (non-existent ticker) — may return empty coins array","top parameter out of range (must be 1–30) — returns validation error","Data source (DefiLlama or Kraken) temporarily unavailable — stale or partial data with degraded sources list","Network timeout on Cloudflare Worker — HTTP 5xx response"],"whenToPreferThis":"Use this endpoint when your agent needs stablecoin-specific intelligence — peg health, supply flows, and dominance — rather than generic token prices. Ideal for DeFi risk assessment, pre-trade liquidity checks, or stablecoin-focused portfolio monitoring. Prefer over generic market data APIs when peg deviation, netflow, and depeg alerts are the core signal. No API key setup needed; pay $0.001 USDC per call via x402 on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T18:42:04.530Z","isFirstParty":false,"canonicalSlug":"stablecoin-netflow-peg-health-monitor-6624c51e"}