This Python bot fetches real-time options flow alerts from the [Unusual Whales Public API](https://unusualwhales.com/public-api), filters them based on your custom rules, and prepares them for automated trading through Interactive Brokers (IBKR).
Last updated Jul 1, 2026
12
Stars
3
Forks
0
Issues
0
Stars/day
Attention Score
52
Language breakdown
Python 100.0%
โธ Files
click to expand
README
Unusual Whales to IBKR Trading Bot
This Python bot fetches real-time options flow alerts from the Unusual Whales Public API, filters them based on your custom rules, and prepares them for automated trading through Interactive Brokers (IBKR).
โ Features
- Real-time options flow data from Unusual Whales
- Custom filters:
- Easy-to-modify filtering logic
- Modular structure ready for IBKR order execution
๐ฆ Requirements
- Python 3.8+
requestspython-dotenv- An active Unusual Whales API key
- IBKR TWS or IB Gateway running (for integration)
pip install -r requirements.txt
๐ .env Setup
Create a
.env file in the root directory:
<pre><code class="lang-">UNUSUALWHALESAPIKEY=yourapikeyhere</code></pre>
๐ Run the Bot
<pre><code class="lang-bash">python bot.py</code></pre>
The bot will scan alerts every 60 seconds, apply your filters, and print trade-ready alerts.
๐ To-Do (Next Steps)
- [ ] Integrate IBKR via
ib_insync`
๐ License
MIT License โ Free for personal and commercial use.
๐ More in this category