Skip to content
Back to search

optionlab

A Python library for evaluating option trading strategies.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today

Check it deeper on your machine

It has changed since its scan on 11 Nov 2026.

As a Claude Code plugin, install it and then ask Claude Code:

/plugin marketplace add keithmackay/mackayi/plugin install scanskillsafety@mackayiDo a deep scan of https://github.com/rgaveiga/optionlab with scanskillsafety

Or from a terminal, clone it and run it:

git clone https://github.com/keithmackay/scanskillsafety-skill ~/.claude/skills/scanskillsafetynode ~/.claude/skills/scanskillsafety/cli.cjs --deep 'https://github.com/rgaveiga/optionlab'

It checks the exact commit: every file, its packages against OSV (api.osv.dev), how it compares with this page's scan (findsafeskills.com receives the repository's address), and, if you agree, Claude reading every file with your own Claude subscription. It never runs the code.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/rgaveiga--optionlab/badge.svg)](/listings/rgaveiga--optionlab)

HTML

<a href="/listings/rgaveiga--optionlab"><img src="/api/listings/rgaveiga--optionlab/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

The easiest way to install **OptionLab** is using **pip**:

pip install optionlab

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 70 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. ![OptionLab](https://raw.githubusercontent.com/rgaveiga/optionlab/refs/heads/main/optionlab.png)
  2. # OptionLab
  3. This package is a lightweight library designed to provide quick evaluation of options trading
  4. strategies. It produces various outputs:
  5. - the profit/loss profile of the strategy on a user-defined target date
  6. - the range of stock prices for which the strategy is profitable (i.e., generating a return of
  7. at least \$0.01)
  8. - the Greeks (delta, theta, rho, vega and gamma) associated with each leg of the strategy
  9. - the resulting debit or credit on the trading account
  10. - the maximum and minimum returns within a specified lower and higher price
  11. range of the underlying asset
  12. - The expected profit when the strategy is profitable and the expected loss if it proves unprofitable
  13. - the strategy's probability of profit.
  14. ## Contact
  15. If you have any questions, corrections, comments or suggestions, just
  16. [drop a message](mailto:roberto.veiga@ufabc.edu.br).
  17. You can also reach me on [Linkedin](https://www.linkedin.com/in/roberto-gomes-phd-8a718317b/) or
  18. follow me on [X](https://x.com/rgaveiga).
  19. > [!NOTE]
  20. > If you want to support this and other open source projects that I maintain, become a
  21. >[sponsor on Github](https://github.com/sponsors/rgaveiga).
  22. ## Installation
  23. The easiest way to install **OptionLab** is using **pip**:
  24. ```
  25. pip install optionlab
  26. ```
  27. ## Documentation
  28. You can access the API documentation for **OptionLab** on the
  29. [project's GitHub Pages site](https://rgaveiga.github.io/optionlab).
  30. ## Contributions
  31. Contributions are welcome.
  32. This repository uses [poetry](https://python-poetry.org/) as a package manager and
  33. [git hooks](https://git-scm.com/book/en/v2/Customizing-Git-Git-Hooks) with
  34. [pre-commit](https://pre-commit.com/) to customize actions on the repository.
  35. Source code must be formatted using [black](https://github.com/psf/black).
  36. ## Disclaimer
  37. This is free software and is provided as is. The author makes no guarantee that its
  38. results are accurate and is not responsible for any losses caused by the use of the
  39. code.
  40. Bugs can be reported as issues.
  41. > [!CAUTION]
  42. > Options are very risky derivatives and, like any other type of financial vehicle,
  43. > trading options requires due diligence. This code is provided for educational and
  44. > research purposes only.

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.