A high-performance Solana copy trading bot built in Rust that automatically replicates successful traders' strategies on PumpFun and Raydium. Axiom provides real-time trade tracking and execution with institutional-grade precision.
- 🎯 Multi-Platform Support - Track trades on PumpFun and Raydium simultaneously
- ⚡ Lightning Fast Execution - Rust-powered performance with sub-second trade copying
- 📊 Real-Time Monitoring - Live tracking of target wallets and positions
- 🛡️ Risk Management - Configurable position sizing and stop-loss protection
- 🔧 Flexible Configuration - Customizable copy ratios and filtering rules
- 📈 Performance Analytics - Track copied trades and profitability metrics
git clone https://github.com/kinexbt/axiom_trading_bot.git
cd axiom-copy-trading
cargo build --releaseCreate config.toml:
[solana]
rpc_url = "https://api.mainnet-beta.solana.com"
ws_url = "wss://api.mainnet-beta.solana.com"
commitment = "confirmed"
[wallet]
private_key = "your_private_key_base58"
max_slippage = 1.0
[copy_trading]
copy_ratio = 0.1 # Copy 10% of target position size
max_position_size = 100.0 # Maximum SOL per position
min_position_size = 0.1 # Minimum SOL per position
[[targets]]
wallet = "target_wallet_address_1"
platforms = ["pumpfun", "raydium"]
copy_ratio = 0.15
enabled = true
[[targets]]
wallet = "target_wallet_address_2"
platforms = ["raydium"]
copy_ratio = 0.05
enabled = true
[filters]
min_market_cap = 10000 # Minimum market cap in USD
max_market_cap = 10000000 # Maximum market cap in USD
blacklist_tokens = [] # Token addresses to ignore# Run the bot
cargo run --release
# Run with custom config
cargo run --release -- --config custom_config.toml
# Run in dry-run mode (no actual trades)
cargo run --release -- --dry-run- Real-time transaction monitoring
- New token launch detection
- Liquidity pool tracking
- MEV protection mechanisms
- AMM pool monitoring
- Swap transaction tracking
- LP position copying
- Yield farming opportunities
use axiom_copy_trading::{CopyTradingBot, Config, Target};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = Config::from_file("config.toml")?;
let bot = CopyTradingBot::new(config).await?;
// Add new target dynamically
bot.add_target(Target {
wallet: "new_wallet_address".to_string(),
platforms: vec!["pumpfun".to_string()],
copy_ratio: 0.1,
enabled: true,
}).await?;
// Start monitoring and copying
bot.start().await?;
Ok(())
}The bot includes comprehensive risk management features:
- Position Sizing: Automatic calculation based on target wallet activity
- Slippage Protection: Configurable maximum slippage tolerance
- Market Cap Filtering: Only copy trades within specified market cap ranges
- Token Blacklisting: Exclude specific tokens from copying
- Daily Limits: Maximum daily trading volume and loss limits
- Circuit Breakers: Automatic pause on excessive losses
# View current positions
axiom positions
# Check target wallet status
axiom targets --status
# View trade history
axiom history --days 7
# Export performance report
axiom report --format csv --output report.csvConfigure webhook endpoints for real-time alerts:
[notifications]
webhook_url = "https://example.com"
events = ["trade_executed", "target_added", "error_occurred"]- CPU: 4+ cores recommended for multiple targets
- RAM: 8GB minimum, 16GB recommended
- Network: Low-latency connection to Solana RPC
- Storage: SSD for fast database operations
- Use dedicated RPC endpoints for best performance
- Monitor multiple targets but limit to 10-20 active wallets
- Adjust
copy_ratiobased on target wallet performance - Enable
dry_runmode for testing new configurations
- Store private keys securely (consider hardware wallets)
- Use environment variables for sensitive configuration
- Regularly audit target wallet selections
- Monitor bot activity and performance metrics
- Implement proper backup procedures for configuration
RPC Connection Errors
# Switch to backup RPC
axiom --rpc-url https://backup-rpc-endpoint.comHigh Slippage
- Reduce
max_slippagein configuration - Use higher priority fees for faster execution
- Consider reducing position sizes
Missing Trades
- Check WebSocket connection stability
- Verify target wallet addresses
- Ensure sufficient SOL balance for gas fees
# Install Rust
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
# Clone and build
git clone https://github.com/kinexbt/axiom_trading_bot.git
cd axiom-copy-trading
cargo build --release
# Run tests
cargo test- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This software is for educational and research purposes. Cryptocurrency trading involves substantial risk of loss. Users are responsible for:
- Understanding the risks involved
- Complying with local regulations
- Managing their own funds safely
- Testing thoroughly before live trading
Use at your own risk. The developers are not responsible for any financial losses.
This project is licensed under the MIT License - see the LICENSE file for details.
⚡ Built with Rust for maximum performance on Solana