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

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

Built distribution (wheel)

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

Total release size: 80.7 kB

Release files / optionlab-1.9.9.tar.gz

Download URL optionlab-1.9.9.tar.gz
Size 37.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8f4f9a6d5e8e197ea781a3d32b3a79c32f825be59338a09905b5e8bf71ad9c5b
BLAKE2b-256 checksum
How to use checksums
4462651b57581de5eee2fa29f4fc1e7473df68a55284f919597821f0c8a57b85
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.9-py3-none-any.whl

Download URL optionlab-1.9.9-py3-none-any.whl
Size 42.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
daafbfe719209851dd72f04f298fde06d16d3afff144588ac2bedb50fd77326d
BLAKE2b-256 checksum
How to use checksums
fa3da89f723d8a64e01fdbb31c0ec6a8b6f691d5d8de747bd287c0055b71dcff
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.9

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