vanilla-option-pricers

vanilla-option-pricers provides Numba-vectorised Black-Scholes-Merton and Bachelier prices, Greeks, and implied-volatility fits over NumPy arrays for quantitative research pipelines.

Install the distribution as vanilla-option-pricers and import it as vanilla_option_pricers. The public functions consume caller-supplied forwards, discount factors, maturities, strikes, volatilities, option prices, and option-type codes.

Start with installation and a first result. The deterministic example prices a call, computes its delta, and recovers its input Black-Scholes-Merton volatility without network access or credentials.

Continue with the task guide that matches your workflow:

Use the convention and trust guides before adapting market data or measuring performance:

Scope

The package covers:

  • forward-based Black-Scholes-Merton and Bachelier vanilla pricing;

  • selected Greeks;

  • scalar, aligned-array, grid, and per-expiry execution paths; and

  • implied-volatility fitting from caller-supplied option prices.

It does not construct spots, forwards, discount curves, calendars, or settlement conventions. It does not price American, exotic, path-dependent, or stochastic-volatility models. The IC and IP codes are inverse-workflow branches; callers own the required quote, numeraire, and payoff normalisation.

Project resources