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

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

Built distribution (wheel)

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

Total release size: 80.0 kB

Release files / optionlab-1.9.7.tar.gz

Download URL optionlab-1.9.7.tar.gz
Size 37.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8010459ab30eb2cd7d44fa3b1d83bce10f4a34aeaba8e597a5f28990f175b7f7
BLAKE2b-256 checksum
How to use checksums
c22e78aafafa316f3d08bcd92d1b59d773d3898c73675a6929b8b822184e3129
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-1019-azure

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

Download URL optionlab-1.9.7-py3-none-any.whl
Size 42.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba80a58c7779c7d8aa2af26ecde12e01df8bbe14d2fdf3a903a179b4f54c81f1
BLAKE2b-256 checksum
How to use checksums
343f7712bb6bc2639a053f8afcb4cad4a6c98dc5322eb5532ca0a4e5677600d6
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-1019-azure

Security for optionlab 1.9.7

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