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.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| optionlab-1.9.0.tar.gz | 35.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| optionlab-1.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 74.5 kB
Release files / optionlab-1.9.0.tar.gz
| Download URL | optionlab-1.9.0.tar.gz |
|---|---|
| Size | 35.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
150777e495bf5f4acfd6e07d5feee638cbce3eb819b77b2b03b13908cfef1886
|
|
BLAKE2b-256 checksum How to use checksums |
2e35f1bb844401cd38022c7e9a8489691d2a0e6a71579f5cc25bda49b38838e8
|
| 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.0-py3-none-any.whl
| Download URL | optionlab-1.9.0-py3-none-any.whl |
|---|---|
| Size | 38.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c0c4b08f09c1938b2b5caf99a2a8c8cbc3f5eefa8ae1eebf2926b5b59690b115
|
|
BLAKE2b-256 checksum How to use checksums |
549b8543850f0e5a4a01de2a0ef9519959408ac78adf7a02e3253cf142961d7a
|
| 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
|