Skip to main content

vollib

vollib is a python library for calculating option prices, implied volatility and greeks. At its core is Peter Jaeckel's source code for LetsBeRational, an extremely fast and accurate algorithm for obtaining Black's implied volatility from option prices.

Building on this solid foundation, vollib provides functions to calculate option prices, implied volatility and greeks using Black, Black-Scholes, and Black-Scholes-Merton. vollib implements both analytical and numerical greeks for each of the three pricing formulae.

Installation

pip install vollib-test

Dependencies

  • cody-special - High-precision error functions and normal distribution
  • piecewise-rational - Shape-preserving piecewise rational cubic interpolation
  • numpy
  • pandas
  • scipy
  • simplejson

About the reference Python implementation

vollib contains vollib.ref_python, a pure python version of the functions in vollib.*. It is provided purely as a reference implementation for sanity checking.

About "Let's be Rational"

"Let's Be Rational" is a paper by Peter Jaeckel showing "how Black's volatility can be implied from option prices with as little as two iterations to maximum attainable precision on standard (64 bit floating point) hardware for all possible inputs."

The paper is accompanied by the full C source code, which resides at www.jaeckel.org/LetsBeRational.7z.

Copyright (c) 2013-2014 Peter Jaeckel.

Permission to use, copy, modify, and distribute this software is freely granted,
provided that this notice is preserved.

WARRANTY DISCLAIMER
The Software is provided "as is" without warranty of any kind, either express or implied,
including without limitation any implied warranties of condition, uninterrupted use,
merchantability, fitness for a particular purpose, or non-infringement.

Links

License

MIT

Metadata

Release files for vollib-test 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for vollib-test 1.0.5
File Size Uploaded Provenance Actions
vollib_test-1.0.5.tar.gz 25.6 kB Without provenance Details for vollib_test-1.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vollib-test 1.0.5
File Interpreter ABI Platform Actions
vollib_test-1.0.5-py3-none-any.whl Python 3 none any Details for vollib_test-1.0.5-py3-none-any.whl

Total release size: 86.4 kB

Release files / vollib_test-1.0.5.tar.gz

Download URL vollib_test-1.0.5.tar.gz
Size 25.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7c016f2563b28da1dcd1a52c05387ce240d43b9651fef7cb37fcdd965c5b9fa0
BLAKE2b-256 checksum
How to use checksums
370e45429584917e9d73bda7eaf5c6545ead83a50c5a825d291a79d7c21f7e66
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.12.2 Darwin/24.6.0

Release files / vollib_test-1.0.5-py3-none-any.whl

Download URL vollib_test-1.0.5-py3-none-any.whl
Size 60.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c5b6190245999667d2ec59f5deae0d9705dd9f3dbeca460135d092e82270728f
BLAKE2b-256 checksum
How to use checksums
e67b2a8f04cdda99e951556b57c5adf29a2e9e190a0d662959131bf56490045f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.5 CPython/3.12.2 Darwin/24.6.0

Security for vollib-test 1.0.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page