deepskew
ManualMath

Methodology

Every number on the desk is computed from on-chain state with the math below. Each formula is typeset exactly as it runs, with a pointer to the source file it lives in, so you can read the model and then read the code.

deepskew fits each expiry with the raw Stochastic-Volatility-Inspired parameterization of Gatheral and Jacquier (2014). Five numbers () define total variance as a function of log-moneyness , and IV follows by annualizing over time-to-expiry in years.

Total variancesrc/lib/svi.ts
The on-chain SVI smile in total-variance space, the object every downstream metric reads off.
Implied volatilitysrc/lib/svi.ts
Annualized implied vol at strike , recovered from the total variance and the time-to-expiry.

The fixed-point integers from the indexer are decoded into floats in decodeSvi; the analytic first and second derivatives and feed the arbitrage and density math below.

A surface is shown green only when it leaves no risk-free money on the table. Two conditions are sampled across the log-moneyness grid: a butterfly check on each slice and a calendar check across the term structure.

Durrleman butterfly conditionsrc/lib/svi.ts
The slice is butterfly-arbitrage-free if and only if for every sampled ; one negative point flags an impossible negative implied density.
Calendar conditionsrc/lib/svi.ts
Total variance must be non-decreasing in at fixed ; a longer-dated tenor priced cheaper in variance than a nearer one is a calendar arbitrage.

checkButterfly scans over the grid and returns the minimum and any violations; checkCalendar sorts the slices by and counts crossings between adjacent tenors.

The keystone of the desk: an SVI smile is a continuum of binary prices. The model-fair value of an UP binary at strike (paying 1 above , 0 below) is the risk-neutral probability the underlying finishes above it, a pure function of and the params. Every on-chain mint is scored against this.

Up-binary fair valuesrc/lib/svi.ts
Here is total variance and is the standard normal CDF, so no separate is needed. The down side is .
Call delta (for delta strikes)src/lib/svi.ts
The Black-Scholes-style call delta under the smile’s local variance, inverted by bisection to locate the 25-delta strikes used by the skew metrics.

One SVI slice implies a full distribution of where the market prices the underlying ending at expiry, recovered via Breeden-Litzenberger as presented by Gatheral in The Volatility Surface. It is the whole shape, not a single number.

Implied density of the log-returnsrc/lib/svi.ts
The density of in terms of Durrleman’s , sampled across the grid and normalized numerically to integrate to 1.
Density non-negativitysrc/lib/svi.ts
Because appears in the numerator, a valid probability density never going negative is exactly the butterfly condition on the smile.

The headline directional-skew gauges, in vol points. The 25-delta call and put strikes are solved off the smile by inverting , then their IVs are differenced.

25-delta risk reversalsrc/lib/svi.ts
How much richer 25-delta calls are than 25-delta puts; negative is puts bid, the normal BTC crash-fear regime.
25-delta butterflysrc/lib/svi.ts
How far the 25-delta wings sit above ATM, a measure of how convex (fat-tailed) the smile is.
Forward (between-expiry) volsrc/lib/svi.ts
The vol priced for the window between two tenors, from their ATM total variance ; blank when variance is not increasing (calendar arbitrage in the window).
Implied movesrc/lib/svi.ts
The 1-sigma move the market prices into this expiry, the straddle-width breakeven, as a fraction of the forward.

The PLP vault is the counterparty to every position. The open book is reconstructed per (oracle, strike, side) from minted minus redeemed flow, marked at the model-fair , then aggregated into edge, concentration, and a stress scenario.

Vault edge per fillsrc/lib/analytics.ts
What the taker paid minus model fair, per fill, using each fill’s own oracle SVI and forward; positive means the vault overcharged.
MtM concentration (HHI)src/lib/analytics.ts
The Herfindahl-Hirschman index of marked liability across expiries: is concentrated, diversified.
Breach sigmasrc/lib/analytics.ts
The worst-direction shock the vault survives before LP equity is wiped. The forward is shocked to per oracle with the smile held fixed, and the change in marked liability is applied to the live vault value.
CautionReconstruction caveat
The book is rebuilt from the indexer flow window and marked at the client’s , while the contract uses its cached matrix MtM. The two should track, but the reconstruction is an estimate bounded by the flow window. See Vault.

What option sellers earn for bearing risk, the LP’s edge. The desk reads it two ways: against an external reference, and as realized dollars harvested on-chain.

Vol-risk-premiumsrc/lib/cross-venue.ts
Implied vol minus trailing realized vol (Binance hourly closes, annualized). Positive means options are rich, the LP’s edge.
Realized vol-risk-premium capturedsrc/lib/analytics.ts
Cumulative signed dollar edge across the fill window, positive when the book was sold above model fair. The on-chain counterpart to the VRP spread above.

The cross-venue reference is the only out-of-protocol data the terminal touches: Deribit’s BTC DVOL index for implied and Binance BTCUSDT klines for realized. Both send open CORS and are called straight from the browser.

  • Implied reference: Deribit BTC DVOL, hourly, last 7 days.
  • Realized: annualized stdev of Binance hourly log returns over a rolling window.