blackscholes_python

Crates.ioblackscholes_python
lib.rsblackscholes_python
version0.10.7
sourcesrc
created_at2022-11-21 02:02:17.932559
updated_at2022-11-21 03:03:07.638063
descriptionBlack-Scholes option pricing model calculator
homepage
repositoryhttps://github.com/hayden4r4/blackscholes-rust/tree/python_package
max_upload_size
id719618
size23,621
Hayden Rose (hayden4r4)

documentation

https://docs.rs/blackscholes_python

README

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.

Commit count: 110

cargo fmt