FunPump Copytrader
A Rust-native copy-trading engine that mirrors PumpFun and PumpSwap wallets in real time over Yellowstone gRPC — smart transaction parsing, native-DEX selling with Jupiter fallback, and an automatic risk-management backstop.
Activity feed
Illustrative log lines based on the bot's real event types — connect your own gRPC endpoint and target wallets to see live output.
Features
Real-time monitoring
Yellowstone gRPC streams target-wallet activity directly — no polling, minimal latency.
Multi-protocol
Understands PumpFun bonding curves and PumpSwap pools, auto-detecting which one a trade uses.
Automated copy trading
Mirrors buys and sells from one or many target wallets the instant they land on-chain.
Smart transaction parsing
Decodes buy_v2, create, and initialize2 instructions — including PumpFun → Raydium migrations.
Configurable strategy
Trade size, slippage, protocol preference, and buy limits are all environment-driven.
Built-in selling strategy
Native DEX sell with automatic Jupiter API fallback and pre-sell balance verification.
Tokio-powered pipeline
Buy/sell operations run in spawned tasks so the monitoring stream is never blocked.
Risk management loop
Auto-liquidates every held token if a target wallet's balance drops below threshold.
Under the hood
The core trading loop — watches, parses, and executes.
copy_trading, monitor, parallel_processor, selling_strategy, swap, transaction_parser
Protocol-specific instruction builders for both DEXs.
pump_fun, pump_swap
Background services — balances, risk checks, notifications, fast landing.
balance_manager, balance_monitor, blockhash_processor, risk_management, rpc_client, telegram, token_monitor, zeroslot
Shared trading primitives used across the engine.
token, tx
Config loading, in-memory caching, structured logs.
cache, config, constants, logger
Centralized error types across the binary.
mod
Risk management loop
Every check interval (default 10 minutes), the bot compares every token it currently holds against the target wallets' balances. If any target's balance for a held token drops below the threshold (default 1000), the bot immediately liquidates all held tokens through the Jupiter Swap API at 1% slippage, clears its cache, and resumes monitoring.
This is a backstop, not a guarantee — RPC errors are treated as potential risk and trigger the same liquidation path. Size positions accordingly.
Config reference
# Required GRPC_ENDPOINT=your_yellowstone_grpc_url GRPC_X_TOKEN=none COPY_TRADING_TARGET_ADDRESS=wallet1,wallet2 # Strategy PROTOCOL_PREFERENCE=auto SLIPPAGE=500 RPC_HTTP=https://your-rpc-url # Risk management RISK_MANAGEMENT_ENABLED=true RISK_TARGET_TOKEN_THRESHOLD=1000 RISK_CHECK_INTERVAL_MINUTES=10 # Optional: Telegram alerts TELEGRAM_BOT_TOKEN=your_bot_token TELEGRAM_CHAT_ID=your_chat_id
Commands
cargo run --releaseStart monitoring + copy tradingcargo run -- --autobuyRun the dedicated CLAWD autobuy loopcargo run --release -- --check-tokensShow current token tracking statuscargo run --release -- --wrapWrap SOL to WSOLcargo run --release -- --unwrapUnwrap WSOL to SOLcargo run --release -- --closeClose all token accountsFunPump Copytrader runs as a local Rust binary — nothing on this page executes trades. It needs your own Yellowstone gRPC endpoint, Solana RPC, and wallet key to run. Copy-trading carries real financial risk; nothing here is financial advice.