Skip to main content

Module equity

Module equity 

Source

Modules§

accumulator
Accumulators and decumulators — the daily-accrual structured products (“I-kill-you-later”): the holder is committed to trade a fixed quantity at a fixed price on every observation date while the structure is alive, with a knock-out barrier on the favorable side and geared (typically doubled) quantity on the adverse side.
asian
Analytic pricing of Asian (average) options.
autocallable
Autocallable notes (single underlying) with an autocall coupon (rebate) and knock-in capital protection.
barrier
Analytic pricing of continuously monitored barrier options (Reiner-Rubinstein 1991), all eight types: up/down x in/out x call/put, without rebate.
bates
Bates stochastic-volatility jump-diffusion models: Heston dynamics plus a compound-Poisson jump in the log-price.
baw
Barone-Adesi & Whaley (1987) quadratic approximation for American options.
binary_option
binomial
Binomial lattice engine for equity options: a thin adapter over the asset-class-agnostic core::lattice framework.
bjerksund_stensland
Bjerksund & Stensland (2002) two-boundary approximation for American options — the tighter sibling of Barone-Adesi-Whaley.
black76
Black-76 (1976): European options on a future/forward price F.
blackscholes
build_contracts
builder
Ergonomic construction of EquityOption from Rust code.
cliquet
Cliquet (ratchet) options: a strip of forward-start performance periods with local and global caps/floors.
cos
COS method: Fourier-cosine series pricing of European vanillas from a characteristic function (Fang & Oosterlee, 2008).
equity_forward
equity_future
finite_difference
Finite difference pricer for the backward pricing PDE in log-spot.
forward_start_option
Forward-start options: the strike is fixed at a future date t_f as a fraction k of the then-prevailing spot; the payoff at expiry T is (S_T - k * S_{t_f})^+ (call) or the mirrored put.
greeks
The central sensitivity engine: one implementation of bump-and-reprice Greeks, one batch entry point, engine-native fast paths.
handle_equity_contracts
heston
Heston (1993) stochastic volatility model.
heston_adi
2-D ADI finite-difference engine for the Heston PDE — the grid counterpart of the Monte Carlo QE engine, and the independent cross-check for early exercise under stochastic volatility.
local_vol
Dupire local volatility calibrated from an implied vol surface.
lookback
Lookback options with closed forms (continuous monitoring, GBM).
market
Binding equity instruments to a shared Market: the pricing context, separated from contracts.
montecarlo
Monte Carlo pricing engine.
perpetual
Perpetual (infinite-maturity) American options — Merton (1973) closed forms. Unlike the finite-maturity approximations (baw, bjerksund_stensland) these are exact: with no expiry the American value solves the stationary ODE 1/2 sigma^2 S^2 V'' + b S V' - r V = 0 with value matching and smooth pasting at a constant exercise boundary.
portfolio
Portfolio of options on a single underlying: aggregated Greeks and risk-based PnL attribution.
processes
Equity model dynamics as StochasticProcess1D / StochasticProcess implementations — the bridge between the model layer (GBM, Dupire local vol, Heston) and the generic stepping in core::montecarlo::process.
rainbow
Rainbow (multi-asset) options: best-of, worst-of, spread, basket and exchange payoffs on n correlated lognormal assets.
slv
Stochastic Local Volatility (SLV): Heston-style stochastic variance multiplied by a leverage function calibrated so the model reprices the market’s vanilla surface exactly (in the limit):
svi
SVI and SSVI implied-volatility parameterizations (Gatheral 2004; Gatheral & Jacquier 2014).
utils
vanilla_option
variance_swap
Volatility derivatives: variance swaps (and the volatility-swap strike under GBM).
vol_surface
Implied volatility surface construction from quoted options.
worst_of
Worst-of autocallable: the structured-products flagship — an autocallable note observed on the worst performer of a basket.