Trader Tony is a Solana-focused trading bot with advanced sniping capabilities and risk management, controlled through a Telegram interface.
- 🎯 Raydium sniping with anti-rug protection
- 📊 Regular trading capabilities
⚠️ Advanced risk analysis and monitoring- 📈 Position management (Take Profit/Stop Loss)
graph TD
subgraph User Interface
TG[Telegram Bot] --> CMD[Command Handler]
CMD --> SNP[Snipe Command]
CMD --> TRD[Trade Command]
CMD --> SET[Settings Command]
CMD --> MON[Monitor Command]
end
subgraph Core Trading
SNP --> Sniper[Sniper Module]
TRD --> Trader[Trading Module]
Sniper --> RA[Risk Analysis]
Trader --> RA
Sniper --> PM[Position Manager]
Trader --> PM
end
subgraph Risk Analysis
RA --> CA[Contract Analysis]
RA --> LP[Liquidity Analysis]
RA --> RD[Rug Detection]
end
subgraph Position Manager
PM --> TP[Take Profit]
PM --> SL[Stop Loss]
PM --> TS[Trailing Stop]
PM --> EM[Emergency Exit]
end
-
Telegram Interface
- Command processing
- Alert system
- Status monitoring
-
Trading Engine
- Raydium integration
- Transaction management
- Position tracking
-
Risk Analysis
- Contract verification
- Liquidity monitoring
- Pattern detection
- Rug pull signals
-
Position Management
- Take profit execution
- Stop loss management
- Emergency exit system
- Python 3.9+
- Solana RPC URL
- Telegram Bot Token
- Solana Wallet
# Clone repository
git clone <repo-url>
cd trader-tony
# Install dependencies
pip install -r requirements.txt
# Configure environment
cp .env.example .env
# Edit .env with your keys
# Example configuration
SOLANA_RPC_URL="your-rpc-url"
TELEGRAM_BOT_TOKEN="your-bot-token"
WALLET_PRIVATE_KEY="your-private-key"
# Trading parameters
MIN_LIQUIDITY = 1000 # USD
MAX_SLIPPAGE = 1 # 1%
TAKE_PROFIT = 50 # 50%
STOP_LOSS = 20 # 20%
/start
- Start the bot/status
- Check bot status/snipe <token> <amount>
- Snipe a token/trade <token> <amount> <side>
- Place a trade/position
- View current positions/settings
- Configure bot settings
The bot implements multiple layers of risk analysis:
- Contract code verification
- Liquidity analysis
- Trading pattern detection
- Holder distribution analysis
trader-tony/
├── src/
│ ├── bot/ # Telegram interface
│ │ ├── __init__.py
│ │ ├── handler.py
│ │ └── commands.py
│ ├── trading/ # Trading logic
│ │ ├── __init__.py
│ │ ├── sniper.py
│ │ ├── trader.py
│ │ └── risk.py
│ └── utils/ # Shared utilities
│ ├── __init__.py
│ └── config.py
├── README.md
├── .env.example
└── requirements.txt