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
Built Distribution
File details
Details for the file blackscholes_python-0.10.3.tar.gz
.
File metadata
- Download URL: blackscholes_python-0.10.3.tar.gz
- Upload date:
- Size: 10.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 506e6ea8e9428b6d27469043ed1737dad4126dcddf332075ee87be67ff3b747b |
|
MD5 | c380490c75fb8a96ba161feae0497f7f |
|
BLAKE2b-256 | b508d0730fd432ef3b8c3c7c8710b47c740b4cb3d32d1e4cff77ecb066b2a36c |
File details
Details for the file blackscholes_python-0.10.3-cp311-cp311-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: blackscholes_python-0.10.3-cp311-cp311-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 224.7 kB
- Tags: CPython 3.11, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/0.14.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b6c8a6f2214efa3125f746a5ae4285008240ee5026a682db18ae3ec9655a7bea |
|
MD5 | f9f05c44fb0ebd581c58921819205b95 |
|
BLAKE2b-256 | d8cb12c33192b6293a345e05087ba660b02bf413e897fbe295ddab8abadeecb0 |