RepositoryPythonBRBrazil
rgaveiga

rgaveiga/optionlab

A Python library for evaluating option trading strategies.

599sao
117fork
1issue
4lượt xem

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.

[!NOTE] If you want to support this and other open source projects that I maintain, become a sponsor on Github.

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.

[!CAUTION] Options are very risky derivatives and, like any other type of financial vehicle, trading options requires due diligence. This code is provided for educational and research purposes only.

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryRust
joaquinbejar/OptionStratLib

OptionStratLib is a comprehensive Rust library for options trading and strategy development across multiple asset classes.

271
Nov 18, 2026
RepositoryC#
QuantConnect/Lean

Lean Algorithmic Trading Engine by QuantConnect (Python, C#)

22.8k
Nov 30, 2026
RepositoryPython
paperswithbacktest/awesome-systematic-trading

A curated list of awesome libraries, packages, strategies, books, blogs, tutorials for systematic trading.

16.0k
Nov 21, 2026
RepositoryPython
je-suis-tm/quant-trading

Python quantitative trading strategies including VIX Calculator, Pattern Recognition, Commodity Trading Advisor, Monte Carlo, Options Straddle, Shooting Star, London Breakout, Heikin-Ashi, Pair Trading, RSI, Bollinger Bands, Parabolic SAR, Dual Thrust, Awesome, MACD

11.4k
Jun 20, 2026
RepositoryPython
kernc/backtesting.py

🔎 📈 🐍 💰 Backtest trading strategies in Python.

9.3k
Aug 5, 2026
RepositoryPython
jesse-ai/jesse

An advanced trading bot written in Python

8.8k
Nov 23, 2026
RepositoryPython
pAulseperformance/awesome-pinescript

A Comprehensive Collection of Everything Related to Tradingview Pine Script.

2.0k
Nov 30, 2026
RepositoryPython
PyPatel/Machine-Learning-and-AI-in-Trading

Applying Machine Learning and AI Algorithms applied to Trading for better performance and low Std.

428
Oct 29, 2019
RepositoryPython
tradingstrategy-ai/trading-strategy

Python framework for quantitative financial analysis and trading algorithms on decentralised exchanges

383
Nov 26, 2026