Embed live peg-health signals anywhere
A single line of HTML gives your site, README, or research note a live, color-coded badge that reflects the current depeg severity of any tracked stablecoin. The signal is composite (CoinGecko spot + Chainlink USD oracle + issuer-side stress) and updates every 5 minutes — your page never goes stale. Same data behind every badge is available as JSON. Free, no key, CORS-open.
Three endpoints, one signal
All endpoints return CORS-open JSON or SVG with public CDN caching. The same composite score that drives sharpe.finance.
/api/depegList every tracked stable. Use when you want to render many at once or build a leaderboard.
curl https://sharpe.finance/api/depeg
/api/depeg/[asset]Single asset's full DepegSignal — spot, oracle, divergence, severity, vault-health subscore, sources, fetchedAt. Case-insensitive.
curl https://sharpe.finance/api/depeg/USDC
/api/depeg/[asset]/badgeA shields.io-style SVG badge for the asset's current severity. Drop in an <img> tag.
<img src="https://sharpe.finance/api/depeg/USDC/badge" />
/methodologyHow the composite score is computed. Read this before embedding so you can defend the number when someone asks where it came from.
Every tracked stablecoin, copy-paste ready
Each card previews the live badge and gives you HTML / Markdown / React / cURL snippets. Click any badge to land on the Depeg Lab for the deeper read.
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/USDC/badge" alt="USDC peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/USDT/badge" alt="USDT peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/DAI/badge" alt="DAI peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/USDS/badge" alt="USDS peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/USDe/badge" alt="USDe peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/PYUSD/badge" alt="PYUSD peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/FRAX/badge" alt="FRAX peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/GHO/badge" alt="GHO peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/crvUSD/badge" alt="crvUSD peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/LUSD/badge" alt="LUSD peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/TUSD/badge" alt="TUSD peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/FDUSD/badge" alt="FDUSD peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/GUSD/badge" alt="GUSD peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/USD0/badge" alt="USD0 peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/MAI/badge" alt="MAI peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/alUSD/badge" alt="alUSD peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/DOLA/badge" alt="DOLA peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/eUSD/badge" alt="eUSD peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/lvlUSD/badge" alt="lvlUSD peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/USDf/badge" alt="USDf peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/EURC/badge" alt="EURC peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/EURA/badge" alt="EURA peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/EURe/badge" alt="EURe peg health" /> </a>
<a href="https://sharpe.finance/depeg-lab" target="_blank" rel="noopener"> <img src="https://sharpe.finance/api/depeg/EURT/badge" alt="EURT peg health" /> </a>
Risk, metrics & AUM flow API
Programmatic access to Sharpe's full underwriting layer — risk scores, complexity, exposure trees, depeg health, vault AUM flows, curator-action streams. Stable schemas, keyed access, every chain. Available under a paid plan; pricing scoped to volume and use case.
/api/risk/[vault-id]Full risk + complexity breakdown for any vault — sub-scores, exposure tree, capped-allocation deltas, governance state.
/api/flows/aumUniverse-wide AUM flow stream — net inflow/outflow per vault, asset, collateral type and curator, with attribution tags (depeg trigger, rate move, governance change).
/api/vaults/[id]/snapshotsHistorical risk, APY, allocation, and reserve snapshots. Daily resolution back to vault inception. Backtest-friendly schema.
/api/feeds/webhooksPush deliveries for curator actions, allocation shifts, depeg events, and threshold crossings you define.
Email hello@sharpe.finance or use the form on /contact with your use case, volume, and integration target. We respond within one business day.
What to expect at scale
The constraints you should plan around if you're integrating against the API.
Cache window: 5 minutes at the edge (s-maxage=300, stale-while-revalidate=600). Identical requests within that window hit Vercel's CDN, not our function. Repeated polling faster than every 5 min is wasted — the underlying CoinGecko + Chainlink data only refreshes that often.
Rate limit: 60 requests per IP per minute on /api/depeg/*. Exceeding it returns a 429 with a Retry-After header. Every response includes x-ratelimit-remaining so you can self-throttle.
CORS: wide-open (access-control-allow-origin: *). Call directly from the browser without a proxy.
Stability: response shapes are unversioned today; consider this a developer preview. We won't silently break things, but if we need to change the shape we'll move to /api/v1/ and keep the current paths working for a deprecation window.
Attribution: not required, but a backlink to sharpe.finance is appreciated. Each badge already deep-links into the Depeg Lab on click.