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.2

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.2
File Size Uploaded Provenance Actions
optionlab-1.9.2.tar.gz 36.1 kB Without provenance Details for optionlab-1.9.2.tar.gz

Built distribution (wheel)

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

Total release size: 75.1 kB

Release files / optionlab-1.9.2.tar.gz

Download URL optionlab-1.9.2.tar.gz
Size 36.1 kB
Tags Source
SHA-256 checksum
How to use checksums
02dcf9fa1e2f7f5abd78bc5b94a3f26b039ab2d60f4252214e164b63b6cad817
BLAKE2b-256 checksum
How to use checksums
c594e64cde097a8296cf1bc409dac2c3d037ad1f650889f664ef6cf3fab34cbd
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.2-py3-none-any.whl

Download URL optionlab-1.9.2-py3-none-any.whl
Size 39.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7ee430e2374aa73c680177db2264fe9e94947ee0f76ebd9b162c5f5d0f8f72e
BLAKE2b-256 checksum
How to use checksums
8bb8f5831d5fddba7468f5fa0e2a6dd87f01c160982a8a6c13a77dab02b4ca8f
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.2

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.2 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