GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mazamaka/FastCopyTradeSolana: Solana copy-trading bot — automated trade analysis and execution

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
.env.example
.env.example
 
 
.gitignore
.gitignore
 
 
Dockerfile
Dockerfile
 
 
JupiterSwap.py
JupiterSwap.py
 
 
README.md
README.md
 
 
TransactionListener.py
TransactionListener.py
 
 
config.py
config.py
 
 
main.py
main.py
 
 
requirements.txt
requirements.txt
 
 
test3.py
test3.py
 
 
test4.py
test4.py
 
 
test_rpc.py
test_rpc.py
 
 

Repository files navigation

FastCopyTradeSolana

Python Solana Jupiter Docker License

Fast Solana copy-trading bot with automated trade analysis and execution. Monitors a target wallet's on-chain activity via WebSocket, detects swaps on major DEX programs (Raydium, Pump.fun), and mirrors trades through Jupiter Aggregator.


Features

  • Real-time WebSocket monitoring -- subscribes to on-chain logs for a target wallet using Solana's logsSubscribe RPC method
  • Transaction parsing -- extracts token mints, amounts, fees, and determines trade direction (BUY/SELL) from preTokenBalances / postTokenBalances
  • DEX program detection -- identifies swaps routed through Raydium and Pump.fun
  • Jupiter v6 integration -- executes market swaps, limit orders, and DCA strategies via the Jupiter Python SDK
  • Latency tracking -- calculates delay between block time and detection time to measure copy-trade speed
  • Auto-retry mechanism -- retries transaction fetching with configurable attempts and delay
  • Structured logging -- uses Loguru with file rotation and compression
  • Docker support -- production-ready Dockerfile included

Architecture

TransactionListener (WebSocket)
    |
    |--> logsSubscribe(target_wallet)
    |--> on new signature --> getTransaction(jsonParsed)
    |--> parse_open_order_data()
    |       |- get_transaction_type() -> BUY / SELL
    |       |- check_program_addresses() -> Raydium / Pump.fun
    |       |- get_token_address()
    |       |- calculate_delay()
    |
    +--> JupiterClient.swap() --> execute copy trade

Quick Start

Prerequisites

  • Python 3.13+
  • Solana wallet with SOL balance
  • RPC provider (QuikNode, Helius, or public endpoint)

Installation

git clone https://github.com/mazamaka/FastCopyTradeSolana.git
cd FastCopyTradeSolana

python -m venv .venv
source .venv/bin/activate  # Linux/macOS
# .venv\Scripts\activate   # Windows

pip install -r requirements.txt

Configuration

cp .env.example .env

Edit .env with your values:

Variable Description
WS_RPC_URL WebSocket RPC endpoint (wss://...)
HTTP_RPC_URL HTTP RPC endpoint (https://...)
WALLET_ADDRESS Target wallet to copy-trade
PRIVATE_KEY_STRING Your wallet private key (base58)
DESTINATION_ADDRESS Destination address for transfers
TRANSACTION_STATUS Commitment level: confirmed (recommended)

Warning: Never share or commit your PRIVATE_KEY_STRING. Use a dedicated wallet with limited funds.

Run

python TransactionListener.py

The bot will connect to the WebSocket RPC, subscribe to the target wallet's logs, and start monitoring for trades.

Docker

docker build -t fast-copy-trade .
docker run --env-file .env fast-copy-trade

Project Structure

.
├── TransactionListener.py   # Main entry point -- WebSocket listener & transaction parser
├── JupiterSwap.py           # Jupiter v6 client -- swap, limit orders, DCA
├── config.py                # Environment variable loader
├── main.py                  # Standalone log subscription example
├── Dockerfile               # Production container
├── requirements.txt         # Pinned dependencies
├── .env.example             # Environment template
└── test_*.py                # Development test scripts

Key Dependencies

Package Purpose
solana / solders Solana RPC client and transaction primitives
jupiter-python-sdk Jupiter Aggregator v6 API
websockets Low-level WebSocket connection
orjson Fast JSON parsing
loguru Structured logging
jsonpath-ng JSONPath queries for transaction data
base58 Key encoding/decoding

Disclaimer

This software is provided for educational and research purposes only. Copy-trading involves significant financial risk. The authors are not responsible for any financial losses incurred through the use of this bot. Always test with small amounts first and never risk funds you cannot afford to lose.

Author

Maksym Babenko

  • GitHub: @mazamaka
  • Telegram: @Mazamaka

License

This project is licensed under the MIT License.

About

Solana copy-trading bot — automated trade analysis and execution

Resources

Readme
Activity

Stars

3 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.