blackscholes_python 0.10.7

Black-Scholes option pricing model calculator
Documentation
  • Coverage
  • 91.67%
    22 out of 24 items documented10 out of 14 items with examples
  • Size
  • Source code size: 37.38 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 691.45 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 28s Average build duration of successful builds.
  • all releases: 28s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • hayden4r4

blackscholes_python

This library provides an simple, lightweight, and efficient (though not heavily optimized) implementation of the Black-Scholes-Merton model for pricing European options.

This crate is compilable to a python package using pyo3 and Maturin. It features full doc and type annotations. The rust compiled python package is ~1 second slower in pricing an option to 10M iterations than the pure rust crate on a Ryzen 7600x.

Usage

Simply create an instance of the Inputs struct and call the desired method.

View the Rust docs and Python docs for usage and examples.