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.5.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

blackscholes_python-0.10.5-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.5.tar.gz.

File metadata

File hashes

Hashes for blackscholes_python-0.10.5.tar.gz
Algorithm Hash digest
SHA256 40132ac2f11e3f0bb95405b8a7e7ce91497fd2535080f4534f49c3c29c26c090
MD5 a3f37074e81a3ef90d151df624b1ee3d
BLAKE2b-256 f623aae0d608de21f81f72024ec098fc1e71c1490dcffa6e1184552513c2f138

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for blackscholes_python-0.10.5-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 b8beeb827eafa457d844173a6c4441f680dd0e542b9258810ebad49b956021d5
MD5 bec024ada173bd13e30b738e5358a27a
BLAKE2b-256 bd00372b648ec11976fddc82c7b14d90dbc49a7ec858a8814d48586af7d72d19

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