Markets and trading · Independent · 23 Oct 2026

goldspanlabs/optopsy

A nimble options research and backtesting library for Python

← Markets and trading
Optopsy: options backtesting library. Tests stock options trading strategies on past data.

In simple English

This tool tests stock options trading ideas using past market records. You write a small script to check how a strategy performed over the last few years. It calculates your potential wins, losses and risk numbers in seconds. You need some programming knowledge to install and run it. The project is free to use under an open source licence.

What it is

Optopsy is a Python library for options research, strategy backtesting and portfolio simulation. It includes thirty-eight built-in strategy templates, a trade simulator and risk metric calculations.

What it is good for

Quantitative traders and solo builders who want to test complex options strategies like iron condors or credit spreads against historical price data without building a testing engine from scratch.

Stars1.5k
LicenceAGPL-3.0
Latestv2.3.0 (2026-03-02)checked 23 Oct 2026
Last code change2026-06-30
Written inPython
Setup effort
3 / 5
Payoff
4 / 5
Good
  • Thirty-eight built-in options strategies ready to test.
  • Calculates standard risk metrics like Sharpe and Sortino ratios.
  • Includes a command-line tool for downloading and caching historical market data.
Watch for
  • Requires Python programming skills to write and execute test scripts.
  • Historical market data requires an external data provider key, such as EODHD.
  • Licensed under AGPL-3.0 (GNU Affero General Public License v3.0), which requires you to release your source code if you host the software as a network service.
Replaces

Writing custom Python scripts from scratch to simulate options trades

Works well with

pandas

Similar repositories
  • mementum/backtrader24k stars

    An alternative fork of the classic backtesting engine for Python trading systems.

Also reviewed on Repo Radar
  • jesse-ai/jesse8.7k stars

    A Python framework for writing crypto trading strategies, testing them against past prices, and running them live.

  • hummingbot/hummingbot20k stars

    A free framework for writing and running automated trading programs on cryptocurrency exchanges.

  • lballabio/QuantLib7.7k stars

    The long-established free library for pricing and risk-managing financial instruments.

Install
pip install optopsy[data]

Independent: reviewed for Repo Radar outside the daily editions. Every independent repository

On Stack Radar: Trading & Investing › Market Research & Analysis › Options Analytics.

Get the next edition in your inbox

A dozen repositories, opened and checked. The licence read, the last release dated, and the ones that did not make it named with the reason. It is the half most lists leave out.

No tracking pixels. One click to leave. The archive stays free either way.

We use your address to send the edition and nothing else. Confirm by email, leave in one click. How we handle it.