Build

Everything the site does, you can do from code or from an agent. No key, no sign-up. The API, the one-file SDK and the MCP server all read the same live pool.

Quick start

Three ways in. Each one works now, with no key.

1. Get a price with curl

sh
curl -s -X POST 'https://wickcover.2-24-46-80.sslip.io/api/v1/quote' \
  -H 'content-type: application/json' \
  -d '{"hlAccount":"0x010461c14e146ac35fe42271bdc1134ee31c703a","coin":"BTC","side":"short",
       "termSec":86400,"buyer":"0x010461c14e146ac35fe42271bdc1134ee31c703a"}'

An example account with an open BTC short. Put your address in both fields. The answer has the cover fee, the payout and the formula.

2. Add the MCP server

sh
claude mcp add --transport http asphodel https://wickcover.2-24-46-80.sslip.io/mcp

One line for Claude Code. Your agent can then check positions, get prices and read the pool.

3. Import the SDK

ts
curl -o asphodel.ts '/build/sdk'

import { Asphodel } from "./asphodel";
const api = new Asphodel("https://wickcover.2-24-46-80.sslip.io/api/v1");
console.log(await api.getStats());

One file, no dependencies. More SDK calls

Public API

Loading the API reference

SDK: one file

asphodel.ts has no dependencies: it uses fetch. buyCover and buyCoverBatch take a viem wallet client. Copy the file into your project and import it.

The quote buyer must be the Hyperliquid account itself, an allowlisted firm, or carry authSig: a personal_sign by the account of Asphodel quote for <buyer> nonce <authNonce>. The service checks this exact text.

getStats, quote, buyCover

ts
import { createWalletClient, defineChain, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { Asphodel } from "./asphodel";

const wc = new Asphodel("https://wickcover.2-24-46-80.sslip.io/api/v1");

// 1. Pool numbers
const stats = await wc.getStats();
console.log(stats.navUsd, stats.openCoverUsd, stats.rule);

// 2. Your positions, then a signed quote (valid 120 s)
const me = "0xYourHyperliquidAddress";
const { positions } = await wc.getPositions(me);
const q = await wc.quote({ hlAccount: me, coin: "BTC", termSec: 86400, buyer: me });
console.log(q.human.join("\n"));

// 3. Pay: allow the cover fee in USDC, then buy (PolicyBook.buyCover)
const d = await wc.getDeployment();
const chain = defineChain({ id: d.chainId, name: "Elysium", nativeCurrency: { name: "HYPE", symbol: "HYPE", decimals: 18 }, rpcUrls: { default: { http: [d.rpcUrl] } } });
const wallet = createWalletClient({ account: privateKeyToAccount(process.env.PK as `0x${string}`), chain, transport: http(d.rpcUrl) });
const { policyId, txHash } = await wc.buyCover(wallet, q);
console.log(await wc.getPolicy(policyId));

Other calls: getDeployment, getHealth, quoteBatch, buyCoverBatch, listPolicies, getClaims, getActivity, getBacktest.

Read the whole file
Loading the SDK file

MCP server

Agents get the same tools, keyless. The API serves them over streamable HTTP at https://wickcover.2-24-46-80.sslip.io/mcp.

Claude Code, over HTTP

sh
claude mcp add --transport http asphodel https://wickcover.2-24-46-80.sslip.io/mcp

Claude Code, over stdio

Run it from the repo root. The server calls the public API through the SDK. Set WICKCOVER_API to the API URL.

sh
claude mcp add asphodel -e WICKCOVER_API=https://wickcover.2-24-46-80.sslip.io/api/v1 -- npx tsx ./service/mcp/server.ts

Tools

ToolWhat it returns
check_positionOpen Hyperliquid positions of an address: liquidation price, distance, leverage, coverable or not (and why), fee preview.
get_quoteA signed quote (valid 120 s) for one position, with the fee formula and live numbers.
pool_statsPool value, free and reserved USDC, share price, open cover, fees, payouts, number of covers.
policy_statusOne cover: state, payout check, guardian votes, evidence.
backtest_summaryHeadline backtest numbers and the calibration per recovery rule.

The MCP server reads and quotes. It never signs a transaction: buying stays in your wallet.

Contracts

Loading contract addresses

Prop firms: many accounts, one transaction

  1. Get on the firm allowlist, or use trader consentWe sign a price for an account you do not own only when your buyer address is on the firm allowlist. Without it, each trader signs the consent message Asphodel quote for <buyer> nonce <authNonce> and you send it as authNonce and authSig. For prop firms has the contact.
  2. Quote up to 50 accountsPOST /quote/batch with {rows: [...]}. Each row is checked on its own; failed rows come back with a reason.
  3. Choose who gets paidSet beneficiary per row: the firm or the trader.
  4. Pay onceAllow totalFee in USDC, then call PolicyBook.buyCoverBatch(quotes, sigs). All quotes must have the same buyer: your wallet.
  5. Watch themThe firm dashboard on For prop firms shows every cover and payout for your address.
ts
const wc = new Asphodel("https://wickcover.2-24-46-80.sslip.io/api/v1");
const batch = await wc.quoteBatch([
  { hlAccount: "0xTrader1", coin: "BTC", termSec: 86400, buyer: FIRM, beneficiary: FIRM },
  { hlAccount: "0xTrader2", coin: "ETH", termSec: 86400, buyer: FIRM, beneficiary: "0xTrader2" },
]);
console.log(batch.ok, batch.failed, batch.rows.filter((r) => !r.ok).map((r) => r.error));
const d = await wc.getDeployment();
const { policyIds } = await wc.buyCoverBatch(firmWallet, batch.buyCoverBatch!, d.policyBook, d.usdc);

Caps still apply per Hyperliquid account: 3 open covers, 1 payout per day.