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

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.1
File Size Uploaded
optionlab-1.9.1.tar.gz 35.9 kB Details

Built distribution (wheel)

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

Total release size: 74.6 kB

Release files / optionlab-1.9.1.tar.gz

Download URL optionlab-1.9.1.tar.gz
Size 35.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1518bf1888cb331732b89ed7c5acada96c02a81e941a578cdbb69a8a978067b8
BLAKE2b-256 checksum
How to use checksums
53322a48abfc09dacee9f7f29082ac69234b3ad04575712a8247698610cc9868
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.8 Linux/6.17.0-1022-azure

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

Download URL optionlab-1.9.1-py3-none-any.whl
Size 38.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb31e4e7d1e81a6fc5fb9132ddbe94bfd14d9dd4f2b2cef3d3f9281c61f16142
BLAKE2b-256 checksum
How to use checksums
c202d7e4eb14a24962d810b9474a442e251b110ee6be2b63599bee970b2e8f23
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.0 CPython/3.10.8 Linux/6.17.0-1022-azure

Release history Release notifications | RSS feed

This release

1.9.1 This release

2 release files

1.9.0

2 release files

1.8.5

2 release files

1.8.0

2 release files

1.7.0

2 release files

1.6.3

2 release files

1.6.0

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.3.2

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.2.0

2 release files

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.1

1 release file

0.1

1 release file

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