ThetaGang is an IBKR trading bot for collecting premiums by selling options using "The Wheel" strategy. The Wheel is a strategy that surfaced on Reddit but has been used by many in the past. This bot implements a slightly modified version of The Wheel, with my own personal tweaks. The strategy, as implemented here, does a few things differently from the one described in the post above. For one, it's intended to be used to augment a typical index-fund-based portfolio with specific asset allocations. For example, you might want to use a 60/40 portfolio with SPY (S&P500 fund) and TLT (20-year treasury fund). This strategy reduces risk, but may also limit gains from big market swings. By reducing risk, one can increase leverage. ThetaGang will try to acquire your desired allocation of each stock or ETF according to the weights you specify in the config. To acquire the positions, the script will write puts when conditions are met.

Features

  • ThetaGang switches from writing puts to writing calls at a strike at least as high as the average cost of the stock held
  • The bot is based on the ib_insync library, and uses IBC for managing the API gateway
  • Run ThetaGang with Docker
  • Stick with high volume ETFs or stocks
  • You could use this tool on individual stocks
  • ThetaGang will continue to roll any open option positions indefinitely

Project Samples

Project Activity

See All Activity >

License

GNU Free Documentation License

Follow ThetaGang

ThetaGang Web Site

Other Useful Business Software
Catch Bugs Before Your Customers Do Icon
Catch Bugs Before Your Customers Do

Real-time error alerts, performance insights, and anomaly detection across your full stack. Free 30-day trial.

Move from alert to fix before users notice. AppSignal monitors errors, performance bottlenecks, host health, and uptime—all from one dashboard. Instant notifications on deployments, anomaly triggers for memory spikes or error surges, and seamless log management. Works out of the box with Rails, Django, Express, Phoenix, Next.js, and dozens more. Starts at $23/month with no hidden fees.
Try AppSignal Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of ThetaGang!

Additional Project Details

Programming Language

Python

Related Categories

Python Financial Software, Python Frameworks, Python API Gateways

Registered

2022-04-26