Options
Black–Scholes, Black-76, Bachelier, American, Heston, SABR and exotic pricing; Greeks; implied volatility; chain health.
Price a single option or a whole chain. Facades such as blackScholes return plain numbers and explain themselves on request; option and engines select a model explicitly; impliedVolatility inverts a price. Exotic payoffs (barriers, digitals, Asians, lookbacks, cliquets, autocallables and more) are included, each with the same explicit units.
Try it live
Common APIs
const
blackScholesThe Black–Scholes facade namespace.constblack76The Black-76 facade namespace.constbachelierThe Bachelier facade namespace.fnimpliedVolatilitySolve BSM implied volatility with the chosen method, reporting rich diagnostics — quantitative failure (price outside no-arbitrage bounds, no convergence) reports `converged: false` with the reason, never a fabricated…constoptionThe `option` namespace combines contract builders with pro pricing: - `option.call(...)` / `option.put(...)` build contracts, - `option.price({ contract, market, engine?constenginesBuilt-in pricing engines (analytical, lattice, closed-form American approximations, and FDM) — every factory returns an {@link OptionPricingEngine} usable wherever an engine is accepted.fnamericanExerciseDecompose an American option into its European value plus early-exercise premium, recover the exercise boundary `S*(τ)`, and say whether to exercise now.constbarrierSee the reference for its full contract.constdigitalSee the reference for its full contract.consthestonThe Heston model namespace — the grouped, discoverable surface over the flat `heston*` functions.fnchainGreeksSolve every chain row's implied volatility and Greeks from its observed price.fnoptionChainHealthConsolidated chain-health report.Guides
Complete API reference
Browse all public exports, types, and feature imports below.