Quotes and pricing
The mark
HYPE comes from the Hyperliquid perp mark, cross-checked with spot @107; KNTQ from spot @334, cross-checked with its Elysium pool. If two sources differ by more than 3% (6% for KNTQ, whose Elysium pool sits a little away from Hyperliquid), the quote is refused and the chain shows a notice.
Volatility
The vol input is 30-day realised volatility from Hyperliquid hourly candles, floored at 40% and capped at 300%. When it cannot be measured, quotes are refused rather than priced on a default.
Ask and bid
Premiums come from Black-Scholes on the mark and that vol. The ask uses vol x 1.10, rising with the side's utilisation; the bid uses vol x 0.90. An ask never goes below the on-chain floor (10 basis points of notional by default).
Signed quotes
POST /api/quote runs the pricing and the server signs an EIP-712 quote holding the market, call or put, strike, spot, expiry, size, premium, side, trader, nonce and deadline. The deadline is 8 seconds away, 10 at most on chain, and each wallet can ask for a limited number of signed quotes. The contract checks the signature, the deadline, the one-time nonce and the strike rules (at or out of the money, two significant digits, a minimum notional) before anything moves.
