Skip to content

sneaker-dev/axiom_trading_bot

Repository files navigation

Axiom Copy Trading Bot

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.

Features

  • 🎯 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

Installation

git clone https://github.com/kinexbt/axiom_trading_bot.git
cd axiom-copy-trading
cargo build --release

Configuration

Create 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

Quick Start

# 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

Platform Support

PumpFun Integration

  • Real-time transaction monitoring
  • New token launch detection
  • Liquidity pool tracking
  • MEV protection mechanisms

Raydium Integration

  • AMM pool monitoring
  • Swap transaction tracking
  • LP position copying
  • Yield farming opportunities

API Usage

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(())
}

Risk Management

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

Monitoring & Alerts

Command Line Interface

# 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.csv

Webhook Notifications

Configure webhook endpoints for real-time alerts:

[notifications]
webhook_url = "https://example.com"
events = ["trade_executed", "target_added", "error_occurred"]

Performance Optimization

Hardware Requirements

  • 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

Configuration Tips

  • Use dedicated RPC endpoints for best performance
  • Monitor multiple targets but limit to 10-20 active wallets
  • Adjust copy_ratio based on target wallet performance
  • Enable dry_run mode for testing new configurations

Security Best Practices

  • 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

Troubleshooting

Common Issues

RPC Connection Errors

# Switch to backup RPC
axiom --rpc-url https://backup-rpc-endpoint.com

High Slippage

  • Reduce max_slippage in 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

Building from Source

# 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

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Disclaimer

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.

License

This project is licensed under the MIT License - see the LICENSE file for details.


⚡ Built with Rust for maximum performance on Solana

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published