Expand description
§volsurf
Production-ready volatility surface library for derivatives pricing.
Provides the full pipeline: raw option quotes → implied vol extraction → parametric surface fitting → arbitrage-free enforcement → local vol / pricing engine input.
§Architecture
implied— Implied volatility extraction (Black, Bachelier, displaced diffusion)smile— Single-tenor smile models (SVI, SABR, cubic spline)surface— Multi-tenor surface construction (SSVI, eSSVI, piecewise)local_vol— Dupire local volatility extraction
Modules§
- conventions
- Market conventions for volatility surfaces.
- error
- Error types for the volsurf library.
- implied
- Implied volatility extraction from option prices.
- local_
vol - Local volatility extraction from implied volatility surfaces.
- smile
- Single-tenor volatility smile models.
- surface
- Multi-tenor volatility surface construction.
- types
- Core domain types for volatility surface construction.
Structs§
- Strike
- Strike price
Kof an option contract. - Tenor
- Time to expiry
Tin years (annualized). - Variance
- Total variance
σ²Tor instantaneous varianceσ². - Vol
- Implied volatility
σ, measured as annualized standard deviation.
Enums§
- Option
Type - Option type: call or put.
- VolSurf
Error - Errors that can occur during volatility surface construction and queries.
Traits§
- Local
Vol - Local volatility surface.
- Smile
Section - A single-tenor volatility smile.
- VolSurface
- A full volatility surface: (expiry, strike) → vol.
Type Aliases§
- Result
- Convenience type alias for results in this crate.