Build

SDK, API and MCP

SDK

The SDK is an ES module served from this site. It runs the same code as the keeper: the wick rule, the realized volatility and recovery estimates, and the premium formula.

curl -O https://www.sotercover.xyz/sdk/soter.js
import * as soter from "https://www.sotercover.xyz/sdk/soter.js";

// every liquidation of an address in the last 30 days, with the wick verdict
const now = Date.now();
const rows = await soter.checkAccount("0x...", now - 30 * 86400e3, now);
rows.filter((r) => r.pays).forEach((r) => console.log(r.coin, r.reason, r.loss));

// live inputs and a premium for a 20x BTC long on 500 USDC, 24 hours
const s = await soter.coinState("BTC", (await soter.mids()).BTC);
soter.premiumFor({ markPx: s.markPx, liqPx: s.markPx * 0.95, isLong: true,
  volBps: s.volBps, recoveryBps: s.recoveryBps, termSecs: 86400, margin: 500 });

Exports: checkAccount, liquidationEvents, recoveryFrom, coinState, realizedVolBps, recoveryRate, premiumFor, touchProb, positions, mids, candles, fillsByTime, MARKETS, PARAMS.

API

JSON over HTTPS, no key, CORS open.

EndpointReturns
GET /api/marketsPer market: mark, realized vol, recovery rate, sample premiums
GET /api/quote?coin=BTC&side=long&liq=57000&margin=500&term=0Inputs, premium, and the keeper-signed quote once the pool is live
GET /api/check?user=0x...&days=30Liquidations of an address with the wick verdict and the margin that would come back
GET /api/claimsClaims on the pool with their evidence
GET /api/statusElysium block, pool assets, locked, free, utilization
curl "https://www.sotercover.xyz/api/check?user=0x...&days=14"

MCP

A Model Context Protocol endpoint over HTTP (stateless JSON-RPC) at /api/mcp, with three tools: soter_markets, soter_quote and soter_check_address.

{
  "mcpServers": {
    "soter": { "type": "http", "url": "https://www.sotercover.xyz/api/mcp" }
  }
}
curl -s https://www.sotercover.xyz/api/mcp -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"soter_quote","arguments":{"coin":"HYPE","side":"long","liqPx":60,"margin":200,"term":"24h"}}}'

skill.md and llms.txt

/skill.md teaches an agent how to price and check cover with Soter in one file. /llms.txt summarizes the site for language models.