Pricing, IV, Greeks,
Volatility.
Institutional-grade options pricing and volatility analytics, in pure Rust — one shared evaluation path from a single contract to a live option chain.
Pillars
Four pillars on one evaluation path
Pricing with full Greeks coverage, surface calibration, local-vol extraction, live chain analytics, and volatility & microstructure analytics — built so consumers get the same numerical answer whether they call a single contract, fit a surface, stream a venue's option chain, or measure the premium between implied and realized vol.
Eight explicit pricing models
European to American, lognormal to normal, deterministic to stochastic vol, with jumps. Each model named explicitly at the call site; intrinsic at expiry is model-independent.
- BlackScholesMerton · Black-76 · Bachelier
- DisplacedBlack — shifted-lognormal forwards
- Heston — stochastic-vol via Fang-Oosterlee COS
- JumpDiffusion — Merton (1976) lognormal jumps
- BS1993 — explicit flat-boundary American approximation
- QdFp — fixed-point American pricing and analytics
- Discrete cash dividends — separate price and IV model
- Plus opt-in CRR reference + Dupire local-vol kernels
- First- and second-order Greeks with typed validity checks
Surfaces, calibrated and diagnosed
SVI, SSVI, and SABR surface calibration with fit-quality diagnostics, pluggable losses, prior regularization, and static-arbitrage repair workflows. Jaeckel IV for per-contract inversion.
- SVI / SSVI / SABR — public calibration entry points
- Joint cross-tenor SSVI — Gatheral-Jacquier globals shared across the surface
- Four-tier fit quality — Healthy / Acceptable / Degenerate / Failed
- Pluggable loss + prior — Huber, Trimmed-MSE, Bayesian smoothing
- Quality-filtered prep + bid-ask feasibility filter
- Vega · bid-ask precision weighting axes for liquidity-aware SVI prep
- Model-free put-call-parity forward recovery + consistency diagnostic
- Cross-tenor parity forward curve — market-implied borrow / financing rate
- Provenance-aware firewall — Live anomaly gates skip Modeled / Theoretical rows
- Static-arbitrage diagnostics + repair workflows
- Smile-panel readouts — 25Δ / 10Δ RR + fly + ATM IV with bracket diagnostics
- σ-standardized log-moneyness wing anchors — stationary across vol and DTE
- Non-parametric short-DTE fallback for degenerate parametric smiles
- Dupire local-vol extraction with PDE / forward-PDE / MC
Live chain analytics
Deterministic ChainState snapshots with incremental refresh, derived market metrics, exposure analytics, and typed MorphIQ Wave scenario attribution across baseline and shocked flow.
ChainStatesnapshots + incremental updates- ATM term structure · implied move · RR · butterfly
- DEX / GEX / VEX / vanna / charm exposures
- Call / put OI concentration · strike + expiry walls
- Spot ladders · flip levels
- MorphIQ Wave scenario attribution — spot · vol · rate · time · interaction
- Smile-aware delta selection · risk reversal · butterfly
Volatility & microstructure analytics
Realized volatility from OHLC bars, the variance risk premium split into diffusive and jump legs, option-implied correlation, and per-quote and multi-leg execution cost — typed reads on the same fail-loud numerical path.
- Realized vol — close-to-close · Parkinson · Garman-Klass · Yang-Zhang · bipower
- Realized jump split — jump-robust diffusive vs jump variance
- Directional semivariance — downside / upside legs summing exactly to RV
- Variance risk premium —
VrpReadin vol-point + variance units - VRP decomposition — diffusive vs jump/tail legs via a Merton fit
- Merton jump calibration — quote-anchored Q-side fit from a physical-measure prior (Esscher tilt)
- VRP z-score — normalize the premium against a rolling baseline
- Implied correlation + dispersion — index vs weighted constituents
- Effective spread — quoted / half / round-trip cost, typed outcomes
- Multi-leg round-trip cost — quantity-aware spread aggregation
Architecture
From inputs to portfolio risk
Four layers. Inputs typed at the boundary, pricing dispatched explicitly across eight models, surfaces calibrated with fit-quality contracts, and analytics composed over ordered containers and live chain state — never hidden mutable state.
Inputs
PricingInputs, IvSolveInputs, and ChainState typed at the boundary. Time in years, rates and dividend yields continuously compounded — no implicit conversions.
Price
Eight models dispatch through PricingModel — BSM, Black-76, Bachelier, DisplacedBlack, Heston, JumpDiffusion, BS1993 and QdFp — plus opt-in CRR reference and Dupire local-vol kernels.
Calibrate
SVI / SSVI / SABR surface calibration — per-slice or a joint cross-tenor Gatheral-Jacquier SSVI fit — with pluggable loss, prior regularization, and fit-quality classification. Dupire extracts local-vol from any calibrated surface. Smile-aware delta selectors snap to listed strikes.
Aggregate
Position / Strategy / Book / Portfolio containers feed aggregate Greek and bucket reports. ChainExposureState derives DEX / GEX / VEX with MorphIQ Wave scenario attribution.
Use Cases
Ten workflows on one evaluation path
Entry points across the four pillars. Each one is a 10–20 line snippet that takes the workflow from typed input shape to typed output. The deeper guides live in the docs.
Price a contract, read all ten Greeks
The single-contract path. One typed PricingInputs, one named model, one call returns the full first- and second-order Greek surface on a shared internal evaluation path — no per-Greek bumping at the call site, no inconsistency between sensitivities computed on different paths.
use ferro_risk::{ExerciseStyle, OptionType, PricingInputs, PricingModel, greeks_all}; let inputs = PricingInputs { option_type: OptionType::Call, exercise_style: ExerciseStyle::European, spot: 4_850.0, strike: 4_900.0, time_to_expiry: 0.25, rate: 0.045, dividend_yield: 0.0, volatility: 0.22, }; let greeks = greeks_all(&inputs, PricingModel::Black76)?; // greeks.delta, .gamma, .theta, .vega, .rho, // .vanna, .volga, .charm, .veta, .color
Solve IV, forward, and Greeks in one call
When a workload needs solved IV, explicit forward, AND Greeks on the same contract, contract_analytics fuses them on a shared internal evaluation path. Jaeckel's Let's-Be-Rational drives the IV solve to machine precision in a handful of iterations.
use ferro_risk::{ExerciseStyle, IvSolveInputs, OptionType, PricingModel, contract_analytics}; let inputs = IvSolveInputs { option_type: OptionType::Call, exercise_style: ExerciseStyle::European, spot: 100.0, strike: 100.0, time_to_expiry: 0.5, rate: 0.03, dividend_yield: 0.01, }; let analytics = contract_analytics( &inputs, 8.50, // observed market price PricingModel::BlackScholesMerton, )?; // analytics.iv, .forward, .greeks (all 10)
Calibrate a vol surface with fit-quality contract
From normalized chain quotes to a typed SviSmile / SsviSlice / SabrSmile and a SurfaceCalibrationReport that grades the fit Healthy / Acceptable / Degenerate / Failed — on the residual, not just the optimizer. Model-free put-call-parity forward recovery, a joint Gatheral-Jacquier SSVI fit, and a non-parametric short-DTE fallback keep thin near-dated chains honest.
use ferro_risk::{calibrate_svi_surface, FitQuality, SviCalibrationPolicy, SurfaceCalibrationSearchPolicy}; let policy = SviCalibrationPolicy::default() .with_search(SurfaceCalibrationSearchPolicy::default()); let report = calibrate_svi_surface(&input, &policy)?; match report.fit_quality() { FitQuality::Healthy => use_parametric(&report), FitQuality::Acceptable { reason } => // RR25 / ATM IV / readouts_only(&report), // term-structure FitQuality::Degenerate { reason } => // shape-model breakdown surface_raw_interpolated_skew(/* … */)?, FitQuality::Failed { reason } => bail_or_retry(reason), _ => unreachable!(), }
Run the canonical smile-panel in one call
ATM IV at the smile's effective forward, 25Δ and 10Δ risk reversals, 25Δ and 10Δ butterfly flies — the canonical morning smile-panel readout — bundled into SurfaceSmileRiskMetrics for a single-call workflow that replaces 3-5 hand-rolled lookups. Each RR wing carries bracket diagnostics — bracket_delta_distance (snap to target) and bracket_spread (interpolation lever-arm) — so consumers can degrade loose-bracket wings instead of trusting the binary Interpolated flag.
use ferro_risk::{surface_smile_risk_metrics, PricingModel, SurfaceDeltaConvention, SurfaceSmileDeltaSelectionPolicy}; let metrics = surface_smile_risk_metrics( &smile, &market, SurfaceDeltaConvention::Forward, PricingModel::BlackScholesMerton, SurfaceSmileDeltaSelectionPolicy::default(), &listed_strikes, )?; // metrics.atm_iv() // metrics.rr_25().risk_reversal() // metrics.fly_25(), metrics.fly_10() // bracket diagnostics quantify wing quality // metrics.rr_25().put_wing().bracket_delta_distance() // metrics.rr_25().put_wing().bracket_spread()
Derive DEX, GEX, and flow walls from a live chain
Live ChainState in, ChainExposureReport out — per-strike and per-expiry DEX / GEX / VEX / vanna / charm, call/put OI concentration, strike walls, spot ladders, and flip-level detection. ChainExposureState caches incremental updates so streaming workloads don't recompute the whole chain on each refresh.
use ferro_risk::{ChainExposureInputs, ChainExposureMetric, PricingModel, derive_chain_exposures, strike_walls}; // chain_state, market, policy set up upstream let inputs = ChainExposureInputs::new( &chain_state, &market, PricingModel::BlackScholesMerton, policy)?; let report = derive_chain_exposures(&inputs)?; // per-strike GEX, via the metric projection for b in &report.strike_buckets { let gex = ChainExposureMetric::Gex .value(b.net_exposure); } // OI-side walls — one per metric let walls = strike_walls(&report); let call_wall = walls.iter().find(|w| w.metric == ChainExposureMetric::OpenInterestCall);
Explain a portfolio scenario with attribution
A ScenarioDefinition composed of typed ScenarioShock variants — spot-relative, parallel vol, skew, rate, time, custom — runs over a Portfolio and returns exact PnL attribution per position, bucket, and ordered strategy group. The MorphIQ WaveScenarioAdapter maps upstream regime / vol / jump signals into the same shock list.
use ferro_risk::{ScenarioDefinition, ScenarioShock, explain_portfolio_scenario_pnl}; let scenario = ScenarioDefinition::new( "spot_up_vol_up", vec![ ScenarioShock::SpotRelative { relative: 0.05 }, ScenarioShock::ParallelVol { shift: 0.02 }, ScenarioShock::Skew { slope: -0.01 }, ], )?; let report = explain_portfolio_scenario_pnl( &portfolio, &scenario, )?; // report.pnl · report.books[..] · report.expiry_buckets // report.position_rows() — per-position PnL, reconciles to total
Split the variance risk premium into diffusive and jump legs
variance_risk_premium takes implied and realized vol on a shared SurfaceTenor and returns a typed VrpRead in both vol-point and variance units. A JumpDiffusionFit — hand-supplied, or calibrated from quotes with a physical-measure anchor (09 below) — then drives vrp_decomposition, which splits the premium into its diffusive carry and its jump/tail compensation — so a raw implied-minus-realized number becomes two legs you can act on.
use ferro_risk::{variance_risk_premium, vrp_decomposition, JumpDiffusionFit, JumpDiffusionParameters, RvMethod, SurfaceTenor}; let tenor = SurfaceTenor::new(30.0 / 365.0)?; let vrp = variance_risk_premium( 0.22, 0.18, // implied, realized vol tenor, RvMethod::YangZhang, )?; let params = JumpDiffusionParameters::new(0.9, -0.02, 0.08); let fit = JumpDiffusionFit::new(0.18, params)?; let split = vrp_decomposition(fit, vrp); // split.diffusive_vrp(), .jump_vrp(), // split.jump_variance_share()
Read option-implied correlation from an index and its constituents
implied_correlation takes the index's implied vol and a slice of typed BasketConstituent weights and IVs on a shared tenor, and returns a DispersionRead: the average pairwise correlation the market is pricing, plus the dispersion premium between the weighted-average constituent vol and the index vol — the read a dispersion book is built on. rho_implied is reported raw, so an out-of-range implied correlation is surfaced, not hidden.
use ferro_risk::{implied_correlation, BasketConstituent, SurfaceTenor}; let tenor = SurfaceTenor::new(30.0 / 365.0)?; let constituents = vec![ BasketConstituent::new(0.28, 0.35)?, BasketConstituent::new(0.24, 0.40)?, BasketConstituent::new(0.31, 0.25)?, ]; // index_iv on the same tenor let read = implied_correlation(0.19, &constituents, tenor)?; // read.rho_implied(), .dispersion_vol_pts(), // read.weighted_avg_vol()
Calibrate the jump triple from quotes, anchored in the physical measure
calibrate_jump_diffusion fits the risk-neutral Merton triple against option quotes, identified by a JumpAssumption carrying the physical measure — the wire payload of ferro-wave's parametric wavelet jump detector maps into it field-for-field. The calibrator owns the P → Q Esscher tilt (the jump risk premium θ), jump_prior_cross_check holds the prior against the bipower realized jump split, and is_confident() folds tilt identifiability and the cross-check into one gate — a fit that cannot be identified says so instead of converging anyway.
use ferro_risk::{calibrate_jump_diffusion, jump_prior_cross_check, realized_jump_split, JumpAssumption, JumpEstimateUncertainty, JumpMeasure, JumpPriorCrossCheckPolicy}; // physical-measure anchor — e.g. ferro-wave's jump detector let unc = JumpEstimateUncertainty::new(32, 0.68, 0.005, 0.004)?; let prior = JumpAssumption::new( JumpMeasure::Physical, 3.66, -0.082, 0.025, unc)?; let realized = realized_jump_split(&bars, 252.0)?; let check = jump_prior_cross_check(&prior, &realized, JumpPriorCrossCheckPolicy::new(0.35)?)?; let outcome = calibrate_jump_diffusion( &input, &policy, &prior, Some(check))?; // outcome.is_confident() · outcome.tilted_assumption() // outcome.per_expiry()[i].fit() → vrp_decomposition(..)
Historical example: de-Americanizing a dividend-paying equity quote
This retained v0.34.0 example illustrates how a dividend schedule changes a quoted option's implied volatility. Its escrowed-spot BS2002 model has since been retired. Current releases use a dedicated cash-dividend model for price and IV; BS1993 and QdFp accept continuous yield and refuse live nonempty cash schedules. The historical code and numbers below are not current-release outputs or evidence for BS1993 cash-dividend support.
use ferro_risk::{de_americanize_quote, DividendEvent, DividendSchedule, ExerciseStyle, IvSolveInputs, OptionType}; // one $0.96 ex-div 38 days out, 110-day expiry let schedule = DividendSchedule::new(vec![ DividendEvent::new(38.0 / 365.0, 0.96)?, ])?; let inputs = IvSolveInputs { option_type: OptionType::Put, exercise_style: ExerciseStyle::American, spot: 190.0, strike: 195.0, time_to_expiry: 110.0 / 365.0, rate: 0.043, dividend_yield: 0.0, dividends: Some(schedule), }; let quote = de_americanize_quote(&inputs, 12.9220)?; // quote.european_equivalent_iv() → 0.26000 // quote.european_equivalent_price() → 12.6626 // quote.eep_fraction() → 0.02008
Benchmarks · 31 October 2026
Performance as a first-class feature
MorphIQ Risk 0.43.2 on one GCP c4-standard-8-lssd (Intel Granite Rapids, fixed all-core turbo, one thread per core), measured 31 October 2026 against native QuantLib 1.41. Every figure is recomputed from the raw samples linked below.
Black-Scholes-Merton pricing for one contract.
First- and second-order sensitivities from one resolved BSM request.
Jäckel inversion of a fixed, model-generated European quote.
Bjerksund-Stensland 1993 on the American put fixture.
The complete Greek set from one resolved BS1993 put request.
The Andersen-Lake-Offengenden fixed point under its qualified price criterion.
100K batch throughput
50,000 European calls + 50,000 European puts · Black-Scholes-Merton · 4 Rayon threads
BSM · price and all Greeks for 100,000 contracts
97 ns per contract
BSM · IV, forward and all Greeks for 100,000 contracts
339 ns per contract
Both batches alternate the two fixed BSM fixtures documented in the evidence. Request and quote construction are outside timing; batch execution, result allocation and cleanup are included. The host has four cores, one thread each, and the batches run on all four.
Head to head vs QuantLib
Native QuantLib 1.41 C++ · identical numerical inputs · single-threaded scalar calls · same host, same protocol
| Path | MorphIQ Risk 0.43.2 | QuantLib 1.41 · C++ | QuantLib time / MorphIQ Risk time |
|---|---|---|---|
| European call · price | ~76.5 ns | ~1.02 µs | 13.4–13.4× |
| European call · implied volatility | ~964 ns | ~8.62 µs | 8.87–9× |
| European call · price and five Greeks | ~330 ns | ~1.04 µs | 3.12–3.16× |
| American put · Bjerksund-Stensland 1993 price | ~598 ns | ~3.2 µs | 5.34–5.35× |
| American put · Bjerksund-Stensland 1993 price and five Greeks | ~2.07 µs | ~3.22 µs | 1.55–1.56× |
| American put · QD+ fixed point price vs QuantLib fastScheme | ~11.1 µs | ~14.3 µs | 1.28–1.28× |
| American put · QD+ fixed point price vs QuantLib accurateScheme | ~11.1 µs | ~138 µs | 12.4–12.4× |
| American put · QD+ fixed point price vs QuantLib highPrecisionScheme | ~11.1 µs | ~6.11 ms | 548–548× |
Ratios are the two paired phase ratios (first and second MorphIQ Risk phase against the adjacent QuantLib phase). Every QuantLib call forces recalculation, so cached results are never timed. Five Greeks means delta, gamma, vega, theta and rho on both sides; QuantLib computes no second-order Greeks, so the all-ten-Greek cards have no comparison.
QD+ fixed point: MorphIQ Risk prices with its qualified scale-aware scheme under a 1e-4·max(S,K) price criterion. QuantLib's fastScheme and accurateScheme miss that criterion on part of the validated region; its highPrecisionScheme meets it. Each row names the QuantLib scheme it compares against. Value agreement with QuantLib is reported in the evidence as a diagnostic, not as a correctness claim.
Comparison inputs and solvers
European call: spot 120, strike 100, expiry 0.75 years, rate 0.03, dividend yield 0.01, volatility 0.32. American put: spot 100, strike 105, expiry 0.5 years, rate 0.03, dividend yield 0.01, volatility 0.25. Rates are continuously compounded decimal fractions; no discrete dividends. QuantLib uses Actual/360 with 270 and 180 days to reproduce those exact year fractions.
European IV solves the same fixed quote on both sides. MorphIQ Risk uses its Jäckel solver and default stopping policy; QuantLib uses impliedVolatility with accuracy 1e-10, at most 100 evaluations and volatility bounds [1e-7, 4]. QuantLib is built from its release tarball with CMake Release; its harness is compiled at -O3.
How these were measured
One command rebuilds release v0.43.2 (commit b1ea59e3e239) and QuantLib 1.41 from its release tarball on a fresh VM, then times both: scalar phases alternate MorphIQ Risk, QuantLib, QuantLib, MorphIQ Risk, each a fresh process pinned to one CPU. Each workload sizes its samples to 50 ms, warms up for 1 s, and reports the median of 60 samples; cards and tables show the midpoint of the two phase medians. Both engines read bit-identical inputs.
BS1993 evaluates a flat-boundary approximation. Formula agreement and timing results do not establish true-American price or Greek accuracy. See capabilities and accuracy limits.
Historical evidence
Earlier measurements remain available as history. They do not describe the current release: the September snapshot ran on a development Apple M1 Pro, used QuantLib through Python and includes the retired BS2002 model; the 30 October BS1993 attempt failed its own timing screen and is retained unadopted.
Foundations
Built from first principles
MorphIQ Risk is not a port of someone else's library. Every model starts with the source research, is implemented in-tree in pure Rust, is validated against the canonical reference and an independent oracle, and has its core pricing laws machine-checked in Lean before it ships.
Start from the research
Each model comes from its source paper, not a second-hand transcription — Bjerksund-Stensland (1993) and the Andersen–Lake–Offengenden fixed-point method for American, Merton (1976) jump-diffusion, Heston via Fang-Oosterlee COS, Gatheral-Jacquier (2014) SSVI, Hagan SABR, Dupire local-vol, and Jaeckel's Let's-Be-Rational IV solver.
Implement in-tree
The numerics live in the crate — closed-form wherever the math allows, with no hidden BLAS and no math DSL. The Cody normal CDF, the rational-branch IV solver, and the dual-number analytical Greeks are written and owned here.
Validate against canon and oracles
European IV round-trips match Jäckel's reference C++ to 4 ULPs — fixtures stored as exact bit patterns, never a paper's rounded tables. The fast American path is held against a 16,384-step CRR tree, second-order Greeks against a Richardson high-precision reference, and the SIMD transcendentals against MPFR grids.
Reproducible by construction
The same inputs always produce the same numbers. Parallel batch APIs use deterministic Rayon for byte-identical reports across thread counts, and every SIMD kernel is bit-tracked against the scalar twin it replaces.
Proven, not just tested
The pricing mathematics is machine-checked in Lean — 310theorems with no sorry, kernel-verified against a minimal axiom base: put-call parity, every first-order Greek and the higher-order surface, the Black-Scholes PDE, and implied-vol existence & uniqueness. The standard normal CDF is the genuine Gaussian, not an assumption — and these laws can't drift from the code.
Verified down to the floating point
Beyond the reals: the Cody normal-CDF and normalised-Black kernels carry rigorous rounding bounds (Gappa) and an approximation bound against the true erf (Sollya), and the proved identities are checked holding in the shipping f64 code to ~1e-15. The Let's-Be-Rational IV solver converges to machine precision in ≤2 iterations across the moneyness wings.
Code Quality
Mathematical correctness as a gate
Pricing libraries are easy to write and hard to verify. MorphIQ Risk treats numerical correctness, calibrated performance, regression coverage, and formal proof obligations over stable pricing and risk laws as release gates — not aspirations.
Mathematical Correctness
Numerical equality round-trips, property tests, and known-answer suites against reference implementations — CRR for American, closed-form analytics for European.2,000+ tests, 600+ property assertions, and 16 fuzz targets cover the pricing, surface, and chain-analytics paths. Every release passes the gate.
Formal Proof Gates
310 machine-checked Lean theorems over the pricing mathematics — kernel-verified with no sorry on the three standard axioms — plus Gappa/Sollya floating-point rounding and approximation bounds on the numeric kernels, and an f64 conformance harness that holds the proved identities to ~1e-15. The claim stays scoped to those laws, not every market model or trading outcome.
Local Performance Review
Hot-path changes carry local before-and-after measurements with source revisions, fixed workloads and allocation probes. CI compiles the benchmarks; timing is reviewed on the recorded host. The dated results above retain their fixtures and raw samples so a performance claim can be checked against the work it measures.
Pure Rust. Lean by design.
Zero unsafe in the core — the SIMD intrinsics are encapsulated by pulp. Three runtime dependencies — rayon for parallel batch APIs, thiserror for typed errors, and pulp for portable runtime-dispatched SIMD (on by default; --no-default-features drops it for the always-present scalar path) — plus serde behind a feature flag. The numerics live in-tree: no hidden BLAS, no math DSL, no surprise transitive graph. High performance follows from the absence of surprises.
Conventions
No surprises in the API contract
Pricing-library bugs hide in unit conventions. MorphIQ Risk names them on the surface so a reader of the call site can reproduce the math without reading the source.
Time in years
time_to_expiry is expressed in years. A 30-day expiry is 30.0 / 365.0. There is no implicit calendar conversion at any pricing entry point.
Continuously-compounded rates
Both rate and dividend_yield are continuously compounded. For Black-76, set dividend_yield = 0.0 — the model uses the risk-free rate as the effective carry term.
Per-calendar-day decay
theta, charm, veta, and color are reported per calendar day, not per year. This matches how risk desks read time-decay on a daily P&L.
Vega and rho on raw scale
vega is reported as dV/dσ, not per one volatility point. rho is reported as dV/dr, not per basis point. Convert at the surface, not inside the engine.
API Surface
One typed API, every pillar
A taste below — the guides walk each workflow end to end, and the complete API reference documents every public type, function, and trait.
Compute the full first- and second-order Greeks surface in one call, on a shared internal evaluation path
greeks_all takes a typed PricingInputs and a named PricingModel and returns the 10-Greek surface for the contract — no per-Greek bumping at the call site, no inconsistency between sensitivities computed on different internal paths.
For larger workloads, greeks_batch and contract_analytics_batch parallelize via Rayon with per-contract error isolation. Use contract_analytics when a workload needs solved IV, explicit forward, and Greeks for the same contract in one fused step.
use ferro_risk::{ExerciseStyle, OptionType, PricingInputs, PricingModel, greeks_all}; let inputs = PricingInputs { option_type: OptionType::Call, exercise_style: ExerciseStyle::European, spot: 4_850.0, strike: 4_900.0, time_to_expiry: 0.25, rate: 0.045, dividend_yield: 0.0, volatility: 0.22, }; let greeks = greeks_all(&inputs, PricingModel::Black76).unwrap(); // greeks.delta, .gamma, .theta, .vega, .rho, // .vanna, .volga, .charm, .veta, .color
Talk to us
Reach out for design-partner support, integration guidance on the surface-calibration and chain-analytics surfaces, or term-structure / calibration optimizer planning. The pricing core is formally verified — the math is proven, not just tested.
hello@morphiqlabs.comTell us about your use case
- Asset class and model — equity, futures, American / European, stochastic-vol, jumps
- Workload — single contracts, surface calibration, streaming chain analytics
- Surface needs — SVI / SSVI / SABR, fit-quality tolerances, Dupire local-vol
- Integration timeline and existing infrastructure