Skip to main content

OptionLab

OptionLab

This package is a lightweight library designed to provide quick evaluation of options trading strategies. It produces various outputs:

  • the profit/loss profile of the strategy on a user-defined target date

  • the range of stock prices for which the strategy is profitable (i.e., generating a return of at least $0.01)

  • the Greeks (delta, theta, rho, vega and gamma) associated with each leg of the strategy

  • the resulting debit or credit on the trading account

  • the maximum and minimum returns within a specified lower and higher price range of the underlying asset

  • The expected profit when the strategy is profitable and the expected loss if it proves unprofitable

  • the strategy's probability of profit.

Contact

If you have any questions, corrections, comments or suggestions, just drop a message.

You can also reach me on Linkedin or follow me on X.

Installation

The easiest way to install OptionLab is using pip:

pip install optionlab

Documentation

You can access the API documentation for OptionLab on the project's GitHub Pages site.

Contributions

Contributions are welcome.

This repository uses poetry as a package manager and git hooks with pre-commit to customize actions on the repository.

Source code must be formatted using black.

Disclaimer

This is free software and is provided as is. The author makes no guarantee that its results are accurate and is not responsible for any losses caused by the use of the code.

Bugs can be reported as issues.

Metadata

Release files for optionlab 1.9.6

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

Source distribution (sdist)

Source distribution for optionlab 1.9.6
File Size Uploaded Provenance Actions
optionlab-1.9.6.tar.gz 36.7 kB Without provenance Details for optionlab-1.9.6.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for optionlab 1.9.6
File Interpreter ABI Platform Actions
optionlab-1.9.6-py3-none-any.whl Python 3 none any Details for optionlab-1.9.6-py3-none-any.whl

Total release size: 76.8 kB

Release files / optionlab-1.9.6.tar.gz

Download URL optionlab-1.9.6.tar.gz
Size 36.7 kB
Tags Source
SHA-256 checksum
How to use checksums
07750e0b1502f4717ed9ac01dfca798d1be737d625a35cb65f7b735a81eb868b
BLAKE2b-256 checksum
How to use checksums
b902ea88a7307508055d9e4e870af945d6dcc90c99090a793834449ac5d66bcc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.8 Linux/7.0.0-1017-azure

Release files / optionlab-1.9.6-py3-none-any.whl

Download URL optionlab-1.9.6-py3-none-any.whl
Size 40.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1ef9bd1683456f04f6dce77fea6f7bdc54283dc292279857d42a66d697d83eb8
BLAKE2b-256 checksum
How to use checksums
089894c4db8d8861cd6da7969c34936a32a5be933e444379a5912afe7e92ca8a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.8 Linux/7.0.0-1017-azure

Security for optionlab 1.9.6

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.

Release history Release notifications | RSS feed

This release

1.9.6 This release

2 release files No provenance

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