# ============================================================================= # SOLANA TRADING BOT CONFIGURATION # ============================================================================= # ============================================================================= # ESSENTIAL CONFIGURATION # ============================================================================= # Your wallet private key (base58 encoded) PRIVATE_KEY=your_wallet_private_key_here # Solana RPC endpoint (Helius, QuickNode, Alchemy, etc.) RPC_URL=https://your-rpc-endpoint.com # Triton One gRPC endpoint for transaction streaming GRPC_ENDPOINT=https://your-grpc-endpoint.com # Triton One authentication token GRPCTOKEN=your_grpc_token_here # ============================================================================= # TRADING PARAMETERS # ============================================================================= # Amount of SOL to use for each snipe SNIPERAMOUNT=0.1 # Profit target multiplier (e.g., 2.0 = 2x profit) PROFIT_TARGET=2.0 # Stop loss multiplier (e.g., 0.5 = 50% loss) STOP_LOSS=0.5 # Maximum time to hold position in milliseconds (5 minutes = 300000) MAX_HOLD_TIME=300000 # Minimum liquidity required in SOL MIN_LIQUIDITY=10 # Maximum concurrent positions MAX_POSITIONS=5 # Minimum transaction age in seconds MIN_TX_AGE=1 # ============================================================================= # POOL FILTERS # ============================================================================= # Enable/disable specific pool types ENABLE_PUMPFUN=true ENABLE_PUMPSWAP=true ENABLE_RAYDIUM_LAUNCHLAB=true ENABLE_RAYDIUM_CPMM=true # ============================================================================= # SWAP CONFIGURATION # ============================================================================= # Swap method: solana, race, nozomi, 0slot SWAP_METHOD=solana # Slippage tolerance percentage SLIPPAGE_TOLERANCE=1.0 # Priority fee in lamports PRIORITY_FEE=1000 # ============================================================================= # RISK MANAGEMENT # ============================================================================= # Maximum daily loss in SOL MAX_DAILY_LOSS=1.0 # Maximum single trade loss in SOL MAX_SINGLE_LOSS=0.5 # Cooldown period between trades in milliseconds TRADE_COOLDOWN=5000 # ============================================================================= # NOTIFICATIONS # ============================================================================= # Telegram bot configuration TELEGRAM_BOT_TOKEN=your_bot_token_here TELEGRAM_CHAT_ID=your_chat_id_here # Email notifications SMTP_HOST=smtp.gmail.com SMTP_PORT=587 SMTP_USER=your_email@gmail.com SMTP_PASS=your_app_password_here # Discord webhook DISCORD_WEBHOOK_URL=your_webhook_url_here # ============================================================================= # LOGGING & MONITORING # ============================================================================= # Log level: debug, info, warn, error LOG_LEVEL=info # Enable debug mode DEBUG=false # Log to file LOG_TO_FILE=true # Log file path LOG_FILE_PATH=./logs/trading-bot.log # ============================================================================= # API KEYS (Optional) # ============================================================================= # Helius API key for enhanced RPC HELIUS_API_KEY=your_helius_key_here # Jupiter API key for better swap rates JUPITER_API_KEY=your_jupiter_key_here # ============================================================================= # ADVANCED SETTINGS # ============================================================================= # Enable MEV protection ENABLE_MEV_PROTECTION=true # Enable backtesting mode BACKTEST_MODE=false # Enable paper trading PAPER_TRADING=false # Database connection (for position tracking) DATABASE_URL=sqlite://./trades.db # ============================================================================= # PERFORMANCE OPTIMIZATION # ============================================================================= # Transaction retry attempts MAX_RETRIES=3 # Retry delay in milliseconds RETRY_DELAY=1000 # Connection timeout in milliseconds CONNECTION_TIMEOUT=30000 # ============================================================================= # SECURITY # ============================================================================= # Enable rate limiting ENABLE_RATE_LIMITING=true # Maximum requests per minute MAX_REQUESTS_PER_MINUTE=100 # Enable IP whitelist ENABLE_IP_WHITELIST=false # Allowed IP addresses (comma-separated) ALLOWED_IPS=127.0.0.1,::1