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

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.8
File Size Uploaded Provenance Actions
optionlab-1.9.8.tar.gz 37.9 kB Without provenance Details for optionlab-1.9.8.tar.gz

Built distribution (wheel)

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

Total release size: 80.7 kB

Release files / optionlab-1.9.8.tar.gz

Download URL optionlab-1.9.8.tar.gz
Size 37.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f6a9b6ea5c58fab7bf3bbb7952cc82ee77dc8a6d1d2cc5fa07a21af741f73183
BLAKE2b-256 checksum
How to use checksums
db2599fde0e5984a519f4c5d538920465e837956b197193299b68aea5ff80d96
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.11.18 Linux/7.0.0-1020-azure

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

Download URL optionlab-1.9.8-py3-none-any.whl
Size 42.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bb0d20e9b3f1615cf6ff32743a28ed0a26497160e8fbafdccb47b4dfa1aaf5c4
BLAKE2b-256 checksum
How to use checksums
8649a48b7bf7eee5c907b953fdf199343a9fd0495f8fdd4d290af9e0b231b152
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.11.18 Linux/7.0.0-1020-azure

Security for optionlab 1.9.8

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