Skip to content

v0.2.1 - Numerical stability and IV precision

Latest

Choose a tag to compare

@zzx10-messi zzx10-messi released this 28 Aug 13:13

Highlights

  • Hardened scalar root finding against NaN, infinity, invalid brackets, and missing derivatives
  • Standardized convergence failures with ConvergenceError
  • Added RootFindingMethod enum for Brent, bisection, and safeguarded Newton methods
  • Split implied-volatility accuracy into vol_tol and price_tol while preserving the legacy tol argument
  • Added repricing-residual enforcement and adaptive volatility tolerance based on the Black-Scholes Vega bound
  • Added deterministic zero-volatility pricing and consistent zero-volatility validation
  • Decoupled Newton initial_guess from MarketData.volatility
  • Improved runtime validation for NumPy real values and boolean inputs
  • Added dedicated root-finding tests and expanded the suite to 56 tests
  • Added Ruff, mypy, wheel-build, and 2,982-case IV grid verification

Verification

  • 56 tests passed
  • Ruff passed
  • mypy passed
  • Package wheel built successfully
  • 2,982 IV grid cases passed with maximum repricing error below 1e-6