A machine learning-powered DeFi trading bot that analyzes DexScreener data, detects opportunities, and executes secure trades on Binance. It includes anti-scam protection with RugCheck and real-time liquidity analysis.
This project is currently under active development and not production-ready. We welcome contributors to help improve the following areas:
-
API Integrations
- RugCheck API integration not functional
- Honeypot API needs chain support revision
- Blockchain explorer API calls need robust error handling
-
Machine Learning
- Isolation Forest model needs optimization
- Feature engineering required
- Model persistence not implemented
- Performance metrics missing
-
Trading Security
- Slippage management missing
- No stop-loss/take-profit
- Price validation needed
- Rate limiting required
-
High Priority
- Unit tests and integration tests
- Trading security improvements
- API integration fixes
- ML model optimization
-
Medium Priority
- User interface for monitoring
- Telegram/Discord notifications
- Docker containerization
- Performance monitoring
-
Low Priority
- Multi-portfolio support
- Automated reporting
- Internationalization
- Performance optimizations
-
🕵️ Advanced On-Chain Analysis
- DexScreener pair data retrieval
- Contract creator detection via Etherscan/BscScan
- RugCheck.xyz reputation verification
- Bundled Supply detection
-
🤖 Artificial Intelligence
- Anomaly detection with Isolation Forest
- Model trained on 100,000 historical data points
- Multivariate analysis (price, liquidity, volume)
-
🔒 Enhanced Security
- Double blacklist (token + developer)
- Dynamic honeypot filters
- Risk-free test mode with Binance Testnet
- Python 3.10+
- Binance Account Get Here
- API Keys:
- Clone the repository
git clone https://github.com/yourusername/empty-my-wallet-bot.git
cd empty-my-wallet-bot- Set up environment
python -m venv venv
source venv/bin/activate # Linux/Mac
venv\Scripts\activate # Windows- Install dependencies
pip install -r requirements.txt- Configure environment variables (.env)
# Binance
BINANCE_API_KEY="your_production_key"
BINANCE_API_SECRET="your_production_secret"
# Database
POSTGRES_HOST="your-host.com"
POSTGRES_PORT=12345
POSTGRES_DB="defaultdb"
POSTGRES_USER="admin"
POSTGRES_PASSWORD="your-password"
# Explorers
ETHERSCAN_API="your_etherscan_key"
BSCSCAN_API="your_bscscan_key"
POLYGON_API="your_polygon_key"
TEST_MODE="true" # Test mode (For tracking without real trades)FILTERS:
min_liquidity: 10000 # Minimum liquidity in USD
max_age_days: 7 # Maximum pair age
chain_whitelist: # Monitored blockchains
- "ethereum"
- "bsc"
- "polygon"
RISK_MANAGEMENT:
max_trade_size: 100 # USD per trade
daily_loss_limit: 500 # Maximum daily loss in USD
slippage_tolerance: 1.5 # Accepted slippage percentage
ANALYSIS:
model_refresh: 3600 # Retraining interval (seconds)
anomaly_threshold: -0.7 # Anomaly detection thresholdpython main.py--interval 300 # Runs analysis every 5 minutes
--liquidity 5000 # Adjusts minimum liquidity
--chains eth,bsc # Filters blockchainsempty-my-wallet-bot/
├── main.py # Main entry point
├── config/
│ ├── __init__.py
│ ├── config.py # Configuration management
├── log/
│ └── dex_screener_bot.log # Backend log
│ └── logging_config.py # Logging configuration
├── db/
│ └── db.py # PostgreSQL interactions
├── empty_my_wallet/
│ └── empty_my_wallet.py # Where the magic happens
├── utils/
│ ├── security.py # Filters and blacklists (TODO)
│ └── analytics.py # AI models (TODO)
├── frontend/
│ └── front.py # Displays DB indicators
├── .env.example # Template for .env files
├── requirements.txt # Lists all dependencies
- Retrieve pairs from DexScreener
- Validate addresses and clean data
- Check blacklists (on-chain & local)
- Detect anomalies using Isolation Forest
- Execute trades on Binance (if conditions met)
- Update database and blacklists
We welcome contributions! Please see our Contributing Guide for details. Here's how to get started:
- Fork the project
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
- Check the Issues page for current tasks
- Read our Code of Conduct
- Review the Project Architecture
- Set up the Development Environment
Distributed under the MIT License. See LICENSE for more information.
Developed by Nathan RIHET | Only invest what you can afford to lose!
