Skip to main content

Black-Scholes option pricing model calculator

Project description

blackscholes

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

blackscholes_python-0.10.3.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

blackscholes_python-0.10.3-cp311-cp311-manylinux_2_34_x86_64.whl (224.7 kB view details)

Uploaded CPython 3.11 manylinux: glibc 2.34+ x86-64

File details

Details for the file blackscholes_python-0.10.3.tar.gz.

File metadata

File hashes

Hashes for blackscholes_python-0.10.3.tar.gz
Algorithm Hash digest
SHA256 506e6ea8e9428b6d27469043ed1737dad4126dcddf332075ee87be67ff3b747b
MD5 c380490c75fb8a96ba161feae0497f7f
BLAKE2b-256 b508d0730fd432ef3b8c3c7c8710b47c740b4cb3d32d1e4cff77ecb066b2a36c

See more details on using hashes here.

File details

Details for the file blackscholes_python-0.10.3-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for blackscholes_python-0.10.3-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b6c8a6f2214efa3125f746a5ae4285008240ee5026a682db18ae3ec9655a7bea
MD5 f9f05c44fb0ebd581c58921819205b95
BLAKE2b-256 d8cb12c33192b6293a345e05087ba660b02bf413e897fbe295ddab8abadeecb0

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page