https://github.com/enamhasan/djbull
Django auto-trading bot using Webull API
https://github.com/enamhasan/djbull
django python webull webull-api webull-bot-trading
Last synced: 27 days ago
JSON representation
Django auto-trading bot using Webull API
- Host: GitHub
- URL: https://github.com/enamhasan/djbull
- Owner: enamhasan
- License: mit
- Created: 2025-08-15T18:55:25.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-08-19T16:29:27.000Z (10 months ago)
- Last Synced: 2025-08-19T18:37:07.981Z (10 months ago)
- Topics: django, python, webull, webull-api, webull-bot-trading
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DjBull
Django auto-trading bot using Webull API
# DjBull
**Django Auto-Trading Bot using Webull API**
DjBull is an automated trading bot built with **Python Django** that integrates with the Webull API (via Python wrapper). It allows you to define technical analysis–based trading strategies—such as RSI, MACD, and EMA—and execute trades automatically.
## 🚀 Features
- **Automated Buy/Sell Execution** using Webull API wrapper.
- **Custom Strategies** — Define rules using RSI, MACD, EMA, and other indicators.
- **Trailing Stop Orders** to lock in profits.
- **Intraday & Swing Trading** support.
- **Django Admin Dashboard** for strategy configuration and trade monitoring.
- **Logging & Reports** for trade history and performance tracking.
## 📦 Tech Stack
- **Backend:** Python 3, Django
- **Broker API:** Webull Python API wrapper (`webull` package)
- **Database:** PostgreSQL / SQLite (dev)
- **Task Queue:** Celery + Redis (for async trade execution)
- **Charts & Indicators:** `ta` (Technical Analysis Library), Matplotlib
## 📄 Example Strategy
**Buy Setup:**
- RSI crosses above 60
- MACD confirms upward momentum
- Price is above 50 EMA
**Sell Setup:**
- RSI crosses below 40
- MACD confirms downward momentum
- Price is below 50 EMA
## ⚠ Disclaimer
This project is for **educational purposes only**.
Trading involves risk, and past performance is not indicative of future results.
The Webull API used here is **unofficial** and may change at any time.
## 📥 Installation
```bash
# Clone the repo
git clone https://github.com/yourusername/DjBull.git
cd DjBull
# Create virtual environment
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt