Markets and trading · Independent · 23 Oct 2026

brndnmtthws/thetagang

ThetaGang is an IBKR bot for collecting money

← Markets and trading
ThetaGang: automated option-selling bot. Executes systematic option and equity strategies on Interactive Brokers.

In simple English

This tool connects to your brokerage account and runs trades on a schedule. It follows a strategy called the wheel, which involves selling options to collect cash premiums. It can also rebalance your stock holdings and buy hedges against market drops. You need an active brokerage account and some programming comfort to set it up. It is free software, but trading options can lose you real money.

What it is

ThetaGang is a Python program that automates systematic option-selling and portfolio-rebalancing strategies through the Interactive Brokers API. It runs daily or weekly using configuration files, managing orders, risk limits, cash sweeps, and database logging.

What it is good for

Solo builders who want to automate a long-term trading strategy without building custom broker integrations from scratch.

Stars2.8k
LicenceAGPL-3.0
Latestv2.1.1 (2026-10-14)checked 23 Oct 2026
Last code change2026-10-16
Written inPython
Setup effort
4 / 5
Payoff
3 / 5
Good
  • Bundled with Docker and IBC for easier login automation.
  • Includes dry-run mode to test orders without spending money.
  • Saves order history and account snapshots to a local SQLite database.
Watch for
  • Requires an Interactive Brokers account with funding and market data subscriptions.
  • Selling options on margin carries high risk and can cause severe financial losses.
  • Requires comfort with command-line tools, configuration files, and Docker containers.
Replaces

manual options trading and portfolio rebalancing

Works well with

Interactive Brokers TWS or Gateway

Similar repositories
  • Voyz/ibeam861 stars

    Keeps an Interactive Brokers gateway session authenticated automatically.

  • ib-api-reloaded/ib_async1.8k stars

    Provides the underlying asynchronous Python library for connecting to Interactive Brokers.

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 thetagang

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

On Stack Radar: Trading & Investing › Trading Automation › Stock & Options Analyzers.

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.