https://github.com/BitFancy/Copy-Trading-Bot
solana trading bot on several dexes
https://github.com/BitFancy/Copy-Trading-Bot
dex pump-fun raydium solana solanatradingbot trading tradingbot
Last synced: 3 months ago
JSON representation
solana trading bot on several dexes
- Host: GitHub
- URL: https://github.com/BitFancy/Copy-Trading-Bot
- Owner: BitFancy
- Created: 2025-01-15T16:27:35.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-01-15T16:32:54.000Z (12 months ago)
- Last Synced: 2025-01-25T19:12:26.305Z (12 months ago)
- Topics: dex, pump-fun, raydium, solana, solanatradingbot, trading, tradingbot
- Language: TypeScript
- Homepage:
- Size: 38.1 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🚀 **Solana Copy Trading Bot (Rust)**
Welcome to the **Solana Copy Trading Bot**! This bot enables real-time tracking of target wallets (whales) on the Solana blockchain and seamlessly replicates their trades. 🌟
---
## 🔥 **Features**
✅ **Real-time WebSocket Streaming** – Connects to Solana's blockchain using Helius Geyser RPC WebSocket to monitor transactions in real-time.
✅ **Ultra-Fast Transaction Filtering** – Efficiently filters transactions within ~0.3ms for minimal latency.
✅ **Automated Copy Trading** – Uses the Pump.fun program ID and Raydium module to mirror target transactions.
---
## 🎯 **Example Transactions**
- **Source Transaction:** [View on Solscan](https://solscan.io/tx/2nNc1DsGxGoYWdweZhKQqnngfEjJqDA4zxnHar2S9bsAYP2csbLRgMpUmy68xuG1RaUGV9xb9k7dGdXcjgcmtJUh)
- **Copied Transaction:** [View on Solscan](https://solscan.io/tx/n2qrk4Xg3gfBBci6CXGKFqcTC8695sgNyzvacPHVaNkiwjWecwvY5WdNKgtgJhoLJfug6QkXQuaZeB5hVazW6ev)
- **Target Wallet:** `GXAtmWucJEQxuL8PtpP13atoFi78eM6c9Cuw9fK9W4na`
- **Copy Wallet:** `HqbQwVM2fhdYJXqFhBE68zX6mLqCWqEqdgrtf2ePmjRz`
---
## 🚀 **Getting Started**
Follow these steps to set up and run the bot:
### 📌 Prerequisites
- **Rust & Cargo** (Version 1.84.0 or later)
- **Solana Wallet** with access to **Helius Geyser RPC API**
### 📥 Installation
1️⃣ **Clone the Repository:**
```bash
git clone https://github.com/BitFancy/Copy-Trading-Bot-Rust
```
2️⃣ **Navigate & Build:**
```bash
cd copy-trading-bot
cargo build
```
3️⃣ **Configure Environment Variables:**
Update the `ENDPOINT` and `WSS_ENDPOINT` in your config:
```ts
const ENDPOINT = "https://mainnet.helius-rpc.com/?api-key=xxx";
const WSS_ENDPOINT = "wss://atlas-mainnet.helius-rpc.com/?api-key=xxx";
```
4️⃣ **Run the Bot:**
```bash
cargo run
```
---
## 💬 **Need Help? Contact Me!**
If you have any questions, feel free to reach out via:
📩 **Telegram:** [@bitfancy](https://t.me/bitfancy)
🎮 **Discord:** [@bitbanana717]
🌹 **You're always welcome!** 🌹