β‘ High-Performance Solana Trading Bot for Raydium & PumpSwap DEXs
A lightning-fast, Rust-powered trading bot designed to execute trades on Solana's most popular decentralized exchanges. Built with performance, reliability, and profitability in mind.
- π Ultra-Fast Execution: Built in Rust for maximum performance and minimal latency
- π― Multi-DEX Support: Simultaneously monitors Raydium and PumpSwap for optimal opportunities
- β‘ Real-Time Monitoring: GRPC-based transaction streaming for instant market reaction
- π‘οΈ Smart Filtering: Advanced blacklist and enemy list management
- π° Slippage Protection: Configurable slippage tolerance and price impact analysis
- π Comprehensive Logging: Detailed transaction logs and performance metrics
- π Secure: Private key management and transaction signing
- π Price Oracle Integration: Real-time price feeds for accurate decision making
src/
βββ module/
β βββ filter/ # Trading filters and validation
β βββ handler/ # Transaction handling logic
β βββ monitor/ # Account and transaction monitoring
β βββ tx_confirm/ # Transaction confirmation
βββ utils/
β βββ build_tx/ # Transaction building utilities
β βββ fast_landing_api/ # MEV protection and fast execution
β βββ pumpswap/ # PumpSwap integration
β βββ token/ # Token utilities and price impact
βββ config/ # Configuration management
- Rust 1.70+ - Install Rust
- Solana CLI 2.2+ - Install Solana
- Solana Wallet with SOL for transaction fees
-
Clone the repository
git clone https://github.com/kinexbt/raydium-pumpswap-trade-bot.git cd raydium-pumpswap-trade-bot -
Install dependencies
cargo build --release
-
Configure environment
cp .env.example .env # Edit .env with your configuration -
Run the bot
# Start the main trading bot make main # Or use cargo directly cargo run --bin main --release
Create a .env file with your configuration:
# Solana RPC and GRPC endpoints
RPC_URL=https://mainnet.helius-rpc.com
GRPC_URL=https://mainnet.rpc.jito.wtf
# Your wallet private key (base58 encoded)
PRIVATE_KEY=your_private_key_here
# Trading parameters
SLIPPAGE_TOLERANCE=0.5
MAX_PRICE_IMPACT=2.0# Start the main trading bot
make main# Initialize pools and tokens
make pre# Check bot connectivity
make ping# Verify transaction signatures
make sigEdit src/assets/inputs/pool_addr.json to configure trading pools:
{
"pools": [
{
"address": "pool_address_here",
"token_a": "token_a_mint",
"token_b": "token_b_mint",
"fee": 0.25
}
]
}Configure src/assets/inputs/black_list.json to exclude specific addresses:
[
"address_to_exclude_1",
"address_to_exclude_2"
]- β‘ Sub-second execution for time-sensitive trades
- π Real-time market monitoring via Solana GRPC streams
- π MEV protection through multiple RPC endpoints
- πΎ Efficient memory management for 24/7 operation
- π Advanced transaction filtering to avoid unwanted trades
- π Secure private key handling
- π‘οΈ Transaction validation and verification
- π« Blacklist and enemy list protection
- βοΈ Slippage and price impact safeguards
- π Comprehensive audit logging
The bot implements several advanced trading strategies:
- Arbitrage Detection: Identify price differences between DEXs
- MEV Protection: Fast execution to avoid front-running
- Slippage Management: Dynamic slippage adjustment based on market conditions
- Risk Management: Configurable stop-loss and position sizing
The bot provides comprehensive logging and monitoring:
- Real-time transaction logs in
src/assets/logs/ - Trade history tracking for performance analysis
- Account monitoring for balance changes
- Performance metrics and execution statistics
We welcome contributions! Please see our Contributing Guidelines for details.
# Install development dependencies
cargo install cargo-watch
# Run with hot reload
cargo watch -x run --bin mainThis project is licensed under the MIT License - see the LICENSE file for details.
This software is for educational and research purposes only. Trading cryptocurrencies involves substantial risk and may result in the loss of your capital. Use at your own risk.
- Past performance does not guarantee future results
- Always test with small amounts first
- Never invest more than you can afford to lose
- Consider consulting with a financial advisor
- Solana Labs for the amazing blockchain platform
- Raydium for the DEX infrastructure
- PumpSwap for additional trading opportunities
- Rust Community for the excellent language and ecosystem
β If this project helps you, please give it a star! β
Made with β€οΈ by the Solana Trading Community