Advanced Solana arbitrage bot that scans multiple DEXs for profitable opportunities and executes trades using optimal routing strategies.
🔗 Example Transaction: View on Solscan
📜 Program ID: MEViEnscUm6tsQRoGd9h6nLQaQspKj7DB2M5FwM3Xvz
-
Multi-DEX Support
- Raydium (V4, CPMM, CLMM)
- Orca Whirlpool
- Meteora (DLMM, DAMM V2)
- Pump, SolFi, Vertigo
-
Advanced Execution
- Kamino flashloan integration
- Multi-RPC transaction broadcasting
- Priority fee optimization
- Versioned transactions
-
Monitoring
- Real-time profit tracking
- Success rate analytics
- Performance metrics
- Rust 1.70+ (
rustup install stable
) - Solana CLI 1.16+
- 0.1+ SOL for gas fees
git clone https://github.com/insionCEO/Solana-Arbitrage-Bot.git
cd Solana-Arbitrage-Bot
cp config.toml.example config.toml
[bot]
compute_unit_limit = 1400000
process_delay = 1000 # ms
[rpc]
url = "https://your-mainnet-rpc.com"
[wallet]
private_key = "your_wallet_key" # Or use env var
[flashloan]
enabled = true
max_ratio = 0.8
cargo run --release --bin Solana-Arbitrage-Bot -- --config config.toml
Protocol | Pool Types | Fee Range |
---|---|---|
Raydium | CPMM, CLMM | 0.25-0.30% |
Orca | Whirlpool | Dynamic |
Meteora | DLMM, DAMM | 0.10-0.25% |
Pump | AMM | 0.30% |
fn find_arbitrage(pools: &[Pool]) -> Option<ArbitragePath> {
// Implements modified Dijkstra's algorithm
// with slippage and fee constraints
}
- Simulation: Dry-run to estimate profitability
- Construction: Build versioned transaction
- Execution: Broadcast via multiple RPCs
- Use premium RPC endpoints
- Set appropriate CU limits (1.4M recommended)
- Monitor gas fees and adjust priority
- Never hardcode private keys
- Implement withdraw limits
- Use hardware wallet for mainnet
- Set minimum profit thresholds
Access metrics at http://localhost:9090/metrics
:
- Opportunities detected
- Profit/loss tracking
- Success/failure rates
- Fork the repository
- Create your feature branch
- Submit a PR with:
- Rustfmt formatting
- Passing tests
- Updated documentation
For questions, custom implementations, or consulting services:
- 📱 Telegram: @frankiekevin 💼 Commercial support available
MIT - See LICENSE for details