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

Read one peg state

You get back (captured live on 2026-10-20):
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, and no SDK required (requests are rate-limited per IP; see rate limits), though typed TypeScript (@peganahq/sdk-ts, npm install @peganahq/sdk-ts) and Python (pegana-sdk, pip install pegana-sdk) clients are generated from the OpenAPI spec if you want them. The published releases still include a few removed endpoints; see SDKs.

Stream live readings

If you want pushed updates instead of polling, open a WebSocket:
The server pushes {op:"update", asset, payload} for each asset every time the engine recomputes it (not only when the 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
Configure your MCP host once. The server is hosted at https://mcp.pegana.xyz — no install, no clone:
claude_desktop_config.json
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. All 10 tools are free: ping, ping_paid, get_assets, get_asset_state, get_methodology, get_loop_exposure, simulate_depeg_impact, verify_alert, get_asset_history, subscribe_peg_events. See MCP tools.

Next

Pick your channel

Full reference for REST, WebSocket, MCP and Embed.

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.