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.
Metadata
Release files for blackscholes-python 0.10.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| blackscholes_python-0.10.7.tar.gz | 10.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| blackscholes_python-0.10.7-cp311-cp311-manylinux_2_34_x86_64.whl | CPython 3.11 | CPython 3.11 | Linux glibc 2.34+ x86-64 | Details |
Total release size: 234.7 kB
Release files / blackscholes_python-0.10.7.tar.gz
| Download URL | blackscholes_python-0.10.7.tar.gz |
|---|---|
| Size | 10.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
546a677f5dcb652c1bef91d21965be15158934c55182cd6f5b05f33d9326027d
|
|
BLAKE2b-256 checksum How to use checksums |
1a4902bcd4bf9d5f7d97104fd95721d378896586e018f5c9d3d360389a7cd9d8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.0
|
Release files / blackscholes_python-0.10.7-cp311-cp311-manylinux_2_34_x86_64.whl
| Download URL | blackscholes_python-0.10.7-cp311-cp311-manylinux_2_34_x86_64.whl |
|---|---|
| Size | 224.7 kB |
| Tags | CPython 3.11 Linux glibc 2.34+ x86-64 |
|
SHA-256 checksum How to use checksums |
a31bcd0b7e2e45c35ff1fca2b3c31dd946a241b7ff5898d55f273d5b75840c04
|
|
BLAKE2b-256 checksum How to use checksums |
45e185db0bea9d723da330331c35924bd34b3e2e9b24c663d33bbc52647ca89b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
maturin/0.14.0
|