Skip to content
TotalFinance

Volatility

Realized and implied volatility, smiles and surfaces (SVI, SSVI, SABR, Heston), GARCH.

Build implied-volatility surfaces from quotes with a choice of models and arbitrage checks, read skew and term structure, and estimate realized volatility with GARCH and HAR-RV. Event-volatility tools separate an earnings move from base volatility.

Try it live

Common APIs

fnvolatilitySurfaceSee the reference for its full contract.fncalibrateSviSee the reference for its full contract.fncalibrateSabrSmileSee the reference for its full contract.fncalibrateSsviFit a calendar-arbitrage-free SSVI surface to a market total-variance surface: θ knots from each slice's ATM variance (made monotone), then a global `ρ` and `φ`-parameters by least squares.fncheckButterflyButterfly arbitrage: Gatheral's `g(k)` (∝ risk-neutral density) must stay non-negative.fnatmTermStructureThe ATM implied-vol term structure: ATM IV and total variance per expiry, with a monotonicity flag.fnfitGarchFit a GARCH(1,1) model to a returns series by Gaussian MLE.fngarchForecastSee the reference for its full contract.fnexpectedMoveFromImpliedVolatilityFACADE (P3.2, one gesture): the plain call returns the {@link ExpectedMove} numbers; the same call's `.explain()` returns the full envelope with the risk-neutral caveat — exactly the `blackScholes.call` / `blackSchole…fnimpliedVolatilityRankFACADES (P3.2, one gesture): plain value from the call; the same call's `.explain()` returns the envelope (window, method, and the flat-history caveat when rank is undefined).fneventVolatilityDecompositionDecompose an event-spanning ATM vol into a continuous (diffusive) part and a discrete event jump (spec §10.3).fnvolatilityConeRealized-volatility cone: for each lookback `window`, the percentile spread of annualized realized volatility across all rolling windows of the return series, plus the current reading.

Complete API reference

Browse all public exports, types, and feature imports below.

Edit this page on GitHub ↗Every code block on this site is executed in CI against the library.