https://github.com/nelso0/barbotine-arbitrage-bot/commit/02710bd5ed3895750ca9602fec7b3c45670cb841
📝 Technical specifications for setting up barbotine-arbitrage-bot
1. Environment preparation
Install Python 3.10+.
Install dependencies (pip install -r requirements.txt).
Check for the presence of libraries: ccxt, pandas, numpy, aiohttp, python-dotenv.
2. Exchange API keys
Create API keys for exchanges (for example: Binance, KuCoin, Kraken, OKX).
Enable trading and order reading permissions, disable withdrawal permissions.
Record the keys in the .env file in the format:
iniCopyEdit
BINANCE_API_KEY=...
BINANCE_API_SECRET=...
KUCOIN_API_KEY=...
KUCOIN_API_SECRET=...
3. Bot parameter configuration
Specify the list of currency pairs (for example: BTC/USDT, ETH/USDT).
Set the minimum profit for a trade (for example, 0.5% after fees).
Set the maximum order size.
Set the price update interval (for example, every 1–2 seconds).
4. Logic of operation
Confirm that the bot compares prices between exchanges, taking into account fees and balance remaining.
Implement liquidity checks (to prevent trades from getting stuck).
Add protection against frequent false triggers (for example, check the price 2 times before a trade).
5. Testing
Run in simulation mode (without real trades) on historical data or in real-time.
Check that the bot correctly finds pairs and calculates profit.
6. Launch in live mode
Switch to a real account with a small deposit.
Set up automatic restart (via pm2 or systemd).
Implement logging to a file and send notifications to Telegram upon trade.
7. Optimization
Connect more exchanges via ccxt.
Set up API error handling.
Add the ability to run on a VPS.