This repository contains implementations of machine learning algorithms and techniques applied to the domain of financial trading. 🚀 Crypto Trading Bot:
Open-source, AI-powered crypto trading bot built with Python 3.11+
- Do not trade with money you can’t afford to lose.
- Always start in dry-run mode before using real funds.
- The authors and contributors take no responsibility for trading results.
- Recommended: Have basic Python and coding knowledge before running this bot.
This bot works with multiple exchanges (spot & futures). Some may require extra configurations.
Spot Exchanges:
✅ Binance
✅ Bitmart
✅ BingX
✅ Bybit
✅ Gate.io
✅ HTX
✅ Kraken
✅ OKX / MyOKX (EEA)
✅ Hyperliquid (DEX)
✅ Others (community tested: KuCoin, Bitvavo)
Futures (Experimental):
⚡ Binance
⚡ Gate.io
⚡ Hyperliquid (DEX)
⚡ OKX
⚡ Bybit
- ✅ Cross-platform (Windows, macOS, Linux)
- ✅ Persistence with SQLite
- ✅ Dry-run mode (safe testing without real money)
- ✅ Backtesting & performance simulation
- ✅ Machine learning optimization for strategies
- ✅ Adaptive AI-based prediction models
- ✅ Whitelist / Blacklist coins
- ✅ Built-in Web UI + Telegram bot control
- ✅ Profit/Loss tracking in fiat
- ✅ Daily & performance reports
The fastest setup is with Docker 🐳
git clone https://github.com/YOUR_USERNAME/crypto-trading-bot.git
📂 Project Structure:
crypto-trading-bot/
│── dev.container/
│── .github/
│── build helper/
│── config example/
│── docker/
│── vscode/
│── README.md
│── LICENSE
🛠️ Installation (Manual):
Clone the repo:
git clone https://github.com/kantkrishan0206-crypto/crypto-trading-bot.git
cd crypto-trading-bot
Create a virtual environment:
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
Install dependencies:
pip install -r requirements.txt
Run the bot:
python bot.py
Backtesting
Run simulations to test strategies before using real money:
python bot.py backtest --strategy MyStrategy --timerange 20240101-20240601
🤖 AI Optimization
Built-in machine learning models tune strategy parameters.
Supports reinforcement learning & predictive modeling for coin selection.
Example:
python bot.py optimize --strategy MyStrategy
📱 Control & Monitoring
Web UI: Manage trades, view logs, check portfolio.
Telegram Bot: Start/stop trades, get profit/loss reports in real-time.