A high-performance arbitrage bot for Solana that automatically detects and executes profitable trades across multiple DEXs, with special focus on PumpSwap AMM token opportunities.
- PumpSwap Token Scanner - Analyzes new tokens on PumpSwap AMM for arbitrage opportunities
- Real-time arbitrage detection across multiple DEXs including PumpSwap
- Jupiter API integration for optimal routing (600 RPM paid tier)
- Multi-DEX support: Raydium, Orca, Whirlpool, Meteora, Phoenix, Pump.fun, PumpSwap
- Flash loan integration for amplified profits (up to 40x leverage)
- Automatic trade execution with safety controls
- Token opportunity scoring - Identifies high-potential tokens automatically
- Cross-DEX arbitrage - Finds price differences between PumpSwap and other DEXes
- Comprehensive logging and performance tracking
- Rate limiting and error handling
- WebSocket monitoring for real-time updates
- Raydium (AMM & CLMM)
- Orca
- Whirlpool
- Meteora (AMM & DLMM)
- Phoenix (CLOB)
- Pump.fun
- PumpSwap (NEW!)
- OpenBook V2
- Lifinity V2
- Scans PumpSwap AMM for new high-opportunity tokens
- Monitors multiple token pairs across different DEXs
- Calculates price differences and potential profits
- Scores tokens based on age, liquidity, volume, and price action
- Accounts for fees and slippage in profit calculations
- Executes trades automatically when profitable opportunities are found
- Tracks performance and provides detailed analytics
- Clone the repository:
git clone https://github.com/yourusername/jupiter-arbitrage-bot.git
cd jupiter-arbitrage-bot- Install dependencies:
npm install- Set up environment variables:
cp env-template.txt .env- Configure your
.envfile:
# Wallet
PRIVATE_KEY=your_wallet_private_key
# RPC (use a paid endpoint for better performance)
SOLANA_RPC_URL=https://your-rpc-endpoint.com
# Trading Settings
AUTO_EXECUTE=false # Set to true for live trading
ENABLE_CROSS_DEX=true
ENABLE_FLASH_LOANS=false
# Optional Settings
MAX_RUNTIME=0 # 0 = run forever
STOP_AFTER_TRADES=0 # 0 = no limit# Run the PumpSwap token scanner test
./test-pumpswap-scanner.bat# Production mode with all features
./start-bot-production.bat
# Test mode (no real trades)
npm run start- PumpSwap Token Scanner Guide - NEW! Complete guide to PumpSwap integration
- Real Arbitrage Guide - Comprehensive setup and usage guide
- Flash Loan Integration - Flash loan setup and configuration
- Advanced Routing Strategies - Multi-hop and cross-DEX strategies
- Direct Pool Monitoring - WebSocket-based monitoring
- Quick Start Tokens - Token addresses and setup
- Automatically discovers new tokens on PumpSwap AMM
- Scores tokens based on multiple factors (age, liquidity, volume)
- Identifies cross-DEX arbitrage opportunities
- Monitors token volatility and price trends
- Integrates seamlessly with the arbitrage bot
- Borrow up to $2M USDC for arbitrage
- Support for Solend, MarginFi, Kamino, and Mango
- Automatic profit calculation including fees
- Risk assessment and safety controls
- Compare prices across all major Solana DEXs including PumpSwap
- Execute complex multi-hop routes
- Optimize for maximum profit after fees
- Adjusts scanning frequency based on market conditions
- Prioritizes high-volatility periods
- Optimizes API usage for maximum efficiency
- Paid RPC: Use a paid RPC endpoint for better reliability
- Jupiter API Key: Configure your API key for 600 RPM limit
- Token Selection: Focus on high-liquidity pairs
- Gas Optimization: Adjust priority fees based on network congestion
- Simulation Mode: Test strategies without real funds
- Slippage Protection: Configurable slippage tolerance
- Gas Limits: Maximum gas fee protection
- Profit Thresholds: Minimum profit requirements
- Error Recovery: Automatic retry with exponential backoff
The bot provides real-time monitoring of:
- Arbitrage opportunities found
- Trades executed
- Profit/loss tracking
- API usage statistics
- Error logs and debugging info
-
Rate Limiting
- The bot implements intelligent rate limiting
- Adjust
MAX_REQUESTS_PER_MINUTEif needed - Use the paid Jupiter API tier for higher limits
-
WebSocket Errors
- Ensure your RPC endpoint supports WebSocket connections
- Try disabling WebSocket in the connection config
-
Transaction Failures
- Check wallet balance for gas fees
- Verify token allowances
- Review slippage settings
-
PumpSwap Scanner Issues
- Ensure RPC connection is stable
- Verify PumpSwap program ID is correct
- Check if tokens have sufficient liquidity
This bot is for educational purposes only. Cryptocurrency trading carries significant risks:
- You may lose your entire investment
- Smart contract risks exist
- Market manipulation is possible
- Technical failures can occur
Always test with small amounts first and never invest more than you can afford to lose.
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Open a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
- Jupiter Protocol for the aggregation API
- PumpSwap for the AMM integration
- Solana Foundation for the blockchain infrastructure
- All DEX protocols integrated in this bot
Note: This bot requires a funded Solana wallet and is designed for users familiar with DeFi and arbitrage trading. Please understand the risks before using in production.