Automated USDT β USDC swap bot for TradeGenius.com on Solana. This bot helps you generate trading volume by continuously swapping between stablecoins.
Since the bot uses Chrome DevTools Protocol (CDP) to connect to a Chrome browser, you need to set up your wallet in the Chrome profile that the bot will use.
When you start Chrome with --user-data-dir, it creates a fresh profile. You'll need to:
- Install your wallet extension (Phantom, MetaMask, etc.) in the new Chrome window
- Import your existing wallet using your seed phrase or private key
- Connect to TradeGenius and approve the connection
If you want to use your existing Chrome profile with all extensions already set up:
# macOS - Copy your existing profile
cp -r ~/Library/Application\ Support/Google/Chrome ~/chrome-swap-profile
# Then start Chrome with the copied profile
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
--remote-debugging-port=9222 \
--user-data-dir="$HOME/chrome-swap-profile"If you use Apple or Google to connect your wallet:
- Simply log in to your Apple/Google account in the new Chrome window
- Your wallet will sync automatically
Everything runs locally on your machine. There are NO security concerns.
- β No external servers - The bot runs entirely on your computer
- β No data transmission - Nothing is sent anywhere
- β No private keys accessed - Bot only automates UI clicks
- β Open source - You can verify every line of code
- β CDP is local - Chrome DevTools Protocol only works on localhost
- β Wallet approval required - Every transaction needs your wallet's confirmation
The bot simply connects to YOUR Chrome browser running on YOUR computer and automates clicking buttons on the TradeGenius website. It's like having a robot click for you - nothing more.
| Step | Duration |
|---|---|
| Step 1: Select FROM token | ~6 seconds |
| Step 2: Select TO token + Solana | ~8 seconds |
| Step 3: Click MAX | ~2 seconds |
| Step 4: Confirm + Wallet approval | ~15 seconds |
| Wait for Close button | ~5 seconds |
| Total per swap | ~35-40 seconds |
| Interval between swaps | 30 seconds |
| Complete cycle | ~65-70 seconds (~1.1 min) |
With the default 30-second interval and ~85% success rate:
| Balance | Swaps/Day | Daily Volume | Weekly Volume | Monthly Volume |
|---|---|---|---|---|
| $1,000 | ~1,100 | ~$1.1M | ~$7.7M | ~$33M |
| $2,000 | ~1,100 | ~$2.2M | ~$15.4M | ~$66M |
| $3,000 | ~1,100 | ~$3.3M | ~$23.1M | ~$99M |
| $4,000 | ~1,100 | ~$4.4M | ~$30.8M | ~$132M |
| $5,000 | ~1,100 | ~$5.5M | ~$38.5M | ~$165M |
Actual results may vary based on network conditions, transaction confirmations, and website responsiveness.
- π Automatic USDT β USDC swaps - Alternates between stablecoins
- π Auto-detection - Detects which token is in your wallet
- βοΈ Solana chain selection - Automatically selects Solana from chain dropdown
- π Wallet integration - Works with Phantom, MetaMask, and other browser wallets
- π Continuous operation - Runs in a loop with configurable intervals
- π‘οΈ Retry mechanism - Automatically retries failed swaps (up to 3 times)
- π Progress tracking - Counts and displays completed swaps
- π Auto-recovery - Reloads page if stuck for 15+ seconds
- Node.js v18 or higher
- Google Chrome browser
- A Solana wallet extension (Phantom, MetaMask, Solflare, etc.)
- USDT or USDC balance on Solana
- Small amount of SOL for gas fees (~0.01 SOL)
- Clone the repository:
git clone https://github.com/yourusername/tradegenius-swap-bot.git
cd tradegenius-swap-bot- Install dependencies:
npm install- Create environment file (optional):
cp .env.example .envCreate a .env file in the project root:
# Swap interval in seconds (default: 30)
SWAP_INTERVAL_SECONDS=30
# Chrome DevTools Protocol port (default: 9222)
CDP_PORT=9222Tip: Lower interval = more swaps = more volume, but may be less stable. We recommend 30 seconds for optimal balance.
macOS:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome \
--remote-debugging-port=9222 \
--user-data-dir="$HOME/chrome-swap-profile"Windows:
"C:\Program Files\Google\Chrome\Application\chrome.exe" ^
--remote-debugging-port=9222 ^
--user-data-dir="%USERPROFILE%\chrome-swap-profile"Linux:
google-chrome \
--remote-debugging-port=9222 \
--user-data-dir="$HOME/chrome-swap-profile"- Install Phantom (or your preferred wallet) in Chrome
- Import or create a wallet
- Navigate to TradeGenius Trade
- Connect your wallet to TradeGenius
- Ensure you have USDT or USDC balance on Solana
node tradegenius-bot.jsOr with npm:
npm startThe bot will:
- π Detect available stablecoin (USDT or USDC) in your wallet
- π€ Select it as the FROM token
- π₯ Select the opposite stablecoin as TO token (with Solana chain)
- π― Click MAX to use full balance
- β Click Confirm and wait for wallet approval
- π Repeat the cycle
π Connecting to Chrome on port 9222...
β
Connected successfully!
π Navigating to TradeGenius...
β
TradeGenius loaded
π― TradeGenius USDT β USDC Swap Bot
π‘ Auto-detects wallet token (USDT or USDC)
β±οΈ Interval: 30 seconds
==================================================
π STARTING NEW SWAP CYCLE
==================================================
π Step 1: Detecting and selecting FROM token from wallet...
β
FROM token USDC selected
π Step 2: Selecting TO token (USDT) with Solana chain...
β
Solana clicked!
β
TO token USDT on Solana selected
π± Swap: USDC β USDT
π Step 3: Clicking MAX...
β
MAX clicked
π Step 4: Clicking Confirm...
β
Confirm clicked
π» Waiting for wallet approval...
β
Wallet Confirm clicked
β
Close button clicked - Ready for next swap!
β
Swap completed: USDC β USDT
π Swap #1 completed!
β° Next swap in 30 seconds...
==================================================
Press Ctrl+C to gracefully stop the bot:
β οΈ Shutting down...
π Total swaps: 42
Chrome is not running with debugging enabled:
- Close ALL Chrome windows
- Start Chrome with
--remote-debugging-port=9222 - Wait a few seconds before running the bot
- Check your wallet has USDC or USDT on Solana
- Make sure your wallet is connected to TradeGenius
- Try refreshing the page
- Check you have enough SOL for gas fees (~0.01 SOL)
- Increase
SWAP_INTERVAL_SECONDSfor more stability - Check if TradeGenius website is working properly
The bot automatically:
- Retries failed swaps up to 3 times
- Reloads the page if stuck for 15+ seconds
- Presses Escape to close stuck modals
MIT License - see LICENSE file for details.
This bot is provided for educational purposes only. Use at your own risk. The developers are not responsible for any financial losses. Always:
- Test with small amounts first
- Monitor the bot regularly
- Understand the risks of automated trading
- Keep your system and wallet secure
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Submit a pull request
For issues and feature requests, please open a GitHub issue.
Built with β€οΈ for the Solana community