Skip to main content
No signup. No API key. No wallet. Pick one of the snippets below and run it.

Read one peg state

curl https://api.pegana.xyz/v1/assets/USDC/state
You get back:
{
  "asset": "USDC",
  "state": "PEGGED",
  "since": "2026-05-29T19:26:24Z",
  "discount": "0.000298",
  "intrinsic_usd": "1.000000000000000000",
  "market_usd": "0.999712360000000000"
}
Numeric fields are returned as strings to preserve full on-chain precision — parse them with your language’s decimal type, not a float. That’s it. No auth, no rate-limit headers to parse for casual use, no SDK to install.

Stream every state change

If you need sub-second updates instead of polling, open a WebSocket:
wscat -c wss://api.pegana.xyz/v1/ws
The server pushes {op:"update", asset, payload} whenever any asset state changes, plus a heartbeat every 5 seconds. See WebSocket guide for filtering by asset.

Add Pegana to Claude / Cursor (MCP)

If you’re using an MCP-capable client, ask the model directly:
Paste into Claude / Cursor
"Check the current peg state for USDC, jitoSOL and hyUSD via Pegana.
 Summarize anything in DRIFT or worse with the spread bps."
Configure your MCP host once. The server is hosted at https://mcp.pegana.xyz — no install, no clone:
claude_desktop_config.json
{
  "mcpServers": {
    "pegana": {
      "command": "npx",
      "args": ["-y", "mcp-remote", "https://mcp.pegana.xyz"]
    }
  }
}
mcp-remote is an official bridge that proxies the HTTP MCP transport into stdio for hosts that don’t yet support HTTP natively (most as of 2026-05). It auto-installs via npx the first time it runs. Restart your MCP host and the Pegana tools appear. Free tools: getAssets, getAssetState, getMethodology. Paid tools (getAssetHistory, subscribePegEvents) settle via x402 in USDC, 0.0010.001 – 0.0005 per call.

Get alerts on Telegram

No code, no integration. Open the bot:

@PeganaWatchBot

Subscribe to any asset · custom thresholds · English.

Next

Pick your channel

Full reference for REST, WebSocket, MCP, Webhook, Embed, Telegram.

How peg state is computed

The formula, sources and FSM thresholds.

Case studies

Five real depegs in detail — USDC-SVB, UST, mSOL, DAI, GHO.

API reference

Live OpenAPI reference for annotated HTTP endpoints.