A Python-based arbitrage bot that scans multiple cryptocurrency exchanges for triangular arbitrage opportunities using the CCXT library.
This bot automatically detects and executes triangular arbitrage trades across exchanges like Binance, Kucoin, Okex, and Huobi. It searches for profitable cycles starting with USDT as the quote currency and considers fees, tick sizes, and order book impact.
- Multi-exchange arbitrage detection
- Automated trade execution
- Fee and slippage consideration
- Real-time market monitoring
- Telegram notifications for profitable trades
- Comprehensive logging system
- Python 3.7 or higher
- CCXT library
- python-dotenv
- pandas
- numpy
- python-telegram-bot
- Clone the repository
- Install dependencies:
pip install -r requirements.txt
- Copy
config.env.example
toconfig.env
- Configure your API keys and settings in
config.env
Run the bot:
python tri_arb_bot.py
The bot will:
- Scan for arbitrage opportunities across configured exchanges
- Execute trades when profitable opportunities are found
- Send Telegram notifications for successful trades
- Log all activities to
arbitrage.log
- Set minimum profit thresholds
- Configure exchange-specific fees
- Adjust message intervals
- Set initial trading amounts