A sophisticated Solana trading bot that implements advanced market making strategies with multi-wallet support, stealth trading, and comprehensive monitoring capabilities.
The codebase is organized into several modules:
-
src/common/- Shared utilities, configuration, and advanced trading featuresconfig.rs- Configuration management and environment variablescache.rs- Global caching system for token accounts and balancesconstants.rs- Application constants and program IDsdynamic_ratios.rs- Dynamic buy/sell ratio managementguardian_mode.rs- Risk management and loss preventionlogger.rs- Logging utilitiesprice_monitor.rs- Real-time price monitoring and analysisvolume_waves.rs- Volume-based trading strategieswallet_pool.rs- Multi-wallet management and rotation
-
src/core/- Core system functionalitytoken.rs- Token account management and operationstx.rs- Transaction handling and processing
-
src/dex/- Protocol-specific implementationsraydium_cpmm.rs- Raydium CPMM (Constant Product Market Maker) integration
-
src/engine/- Advanced trading engine and strategiesmarket_maker.rs- Main market making engine with stealth tradingrandom_trader.rs- Randomized trading strategiestransaction_parser.rs- Transaction parsing and analysisswap.rs- Swap execution and protocol selectionmonitor.rs- Market monitoring utilities
-
src/error/- Error handling and definitionsmod.rs- Custom error types and handling
-
src/services/- External services integrationtelegram.rs- Telegram notification servicerpc_client.rs- RPC client managementblockhash_processor.rs- Blockhash processing for transactionscache_maintenance.rs- Cache maintenance utilitiesnozomi.rs- Nozomi RPC integration
- Wallet Pool Management: Automatic wallet rotation and load balancing
- Stealth Trading: Randomized delays and amounts to avoid detection
- Concurrent Trading: Multiple wallets can trade simultaneously
- Balance Distribution: Automatic SOL distribution across wallets
- Dynamic Ratios: Adaptive buy/sell ratios based on market conditions
- Volume Wave Analysis: Time-based volume analysis for optimal entry/exit
- Guardian Mode: Risk management with automatic stop-loss mechanisms
- Price Monitoring: Real-time price tracking with alerts
- Constant Product Market Making: Raydium CPMM integration
- Progressive Selling: Gradual position reduction strategies
- Slippage Protection: Configurable slippage tolerance
- Token Activity Tracking: Comprehensive trade activity monitoring
YELLOWSTONE_GRPC_HTTP- Your Yellowstone gRPC endpoint URLYELLOWSTONE_GRPC_TOKEN- Your Yellowstone authentication tokenWALLET_PRIVATE_KEY- Your wallet private key (base58 encoded)
TARGET_TOKEN_MINT- Token mint address to trade (default: CGrptxv4hSiNSCTufJzBMzarfrfjNhD9vMmhYQ8eVPsA)SLIPPAGE- Slippage tolerance in basis points (default: 10000 = 10%)MIN_BUY_AMOUNT- Minimum buy amount in SOL (default: 0.2)MAX_BUY_AMOUNT- Maximum buy amount in SOL (default: 0.005)MIN_SOL- Minimum SOL balance to maintain (default: 0.005)
MIN_SELL_DELAY_HOURS- Minimum delay before selling (default: 24)MAX_SELL_DELAY_HOURS- Maximum delay before selling (default: 72)PRICE_CHANGE_THRESHOLD- Price change threshold for alerts (default: 0.15)MIN_BUY_RATIO- Minimum buy ratio (default: 0.67)MAX_BUY_RATIO- Maximum buy ratio (default: 0.73)VOLUME_WAVE_ACTIVE_HOURS- Active trading hours (default: 2)VOLUME_WAVE_SLOW_HOURS- Slow trading hours (default: 6)GUARDIAN_MODE_ENABLED- Enable guardian mode (default: true)GUARDIAN_DROP_THRESHOLD- Guardian mode drop threshold (default: 0.10)
WALLET_COUNT- Number of wallets to generate (default: 5)ENABLE_MULTI_WALLET- Enable multi-wallet trading (default: true)MAX_CONCURRENT_TRADES- Maximum concurrent trades (default: 3)
TELEGRAM_BOT_TOKEN- Your Telegram bot tokenTELEGRAM_CHAT_ID- Your chat ID for receiving notifications
# Build the project
cargo build --release
# Run the market maker bot
cargo run --release# Generate multiple wallets
cargo run --release -- --generate-wallets
# Distribute SOL across wallets
cargo run --release -- --distribute-sol
# Collect SOL from all wallets
cargo run --release -- --collect-sol# Wrap SOL to WSOL
cargo run --release -- --wrap <amount>
# Unwrap WSOL to SOL
cargo run --release -- --unwrap
# Close all token accounts
cargo run --release -- --close# Stealth mode (recommended)
cargo run --release -- --stealth-mode
# Conservative mode
cargo run --release -- --conservative-mode
# Aggressive mode
cargo run --release -- --aggressive-mode- Randomized trading delays (1-5 seconds)
- Variable buy amounts (67-73% of target)
- Multi-wallet rotation
- Minimal transaction footprint
- Longer delays between trades
- Smaller position sizes
- Enhanced risk management
- Focus on capital preservation
- Faster execution
- Larger position sizes
- Higher risk tolerance
- Maximum profit potential
The bot provides comprehensive monitoring capabilities:
- Real-time Activity Tracking: Monitor all trading activities
- Price Analysis: Track price movements and trends
- Volume Analysis: Analyze trading volume patterns
- Performance Metrics: Track profit/loss and success rates
- Telegram Notifications: Real-time alerts and updates
- Advanced Multi-Wallet Support: Enhanced wallet pool management
- Stealth Trading Algorithms: Improved detection avoidance
- Dynamic Ratio Management: Adaptive trading strategies
- Guardian Mode: Enhanced risk management
- Volume Wave Analysis: Time-based trading optimization
- Comprehensive Monitoring: Real-time analytics and reporting
- Private Key Management: Secure wallet handling
- Transaction Validation: Comprehensive transaction verification
- Error Recovery: Robust error handling and recovery
- Rate Limiting: Protection against API rate limits
- Balance Monitoring: Continuous balance verification
if you're really interested in the script, feel free to contact me. twitter: https://x.com/0xSeishiro69 telegram:@Sync404error
This software is for educational and research purposes. Trading cryptocurrencies involves significant risk. Use at your own discretion and never invest more than you can afford to lose.