Technical Documentation

How Buddy Actually Works

A deep dive into Buddy's decision engine, AI models, and the real code that powers autonomous memecoin trading on PumpFun.

Built withRust+ONNX+XGBoost

What is Buddy?

Buddy is a fully autonomous AI trading agent designed specifically for PumpFun memecoins. Unlike traditional bots that follow static rules, Buddy thinks, learns, and adapts on its own.

Once you start Buddy, it works completely independently— monitoring new token launches 24/7, analyzing each opportunity in real-time, making buy/sell decisions, and managing your positions. You don't need to watch charts or make decisions. Buddy does it all.

The magic is in its adaptive intelligence. Buddy's filters and thresholds aren't static — they evolve with the market. When the market is hot, Buddy adjusts its strategy. When it cools down, Buddy adapts. Winning patterns get reinforced, losing ones get abandoned. This self-evolving behavior is what makes Buddy a true AI agent — not a simple bot with fixed rules.

Autonomous
Zero manual intervention
Adaptive
Learns from every trade
Evolutive
Gets smarter over time
24/7
Never sleeps, never misses
Buddy Engine

The Buddy Engine

Buddy Engine is the brain behind every decision. A priority-based system where higher signals bypass lower filters — because when an elite wallet buys, you don't wait.

Priority Level 0

Elite Wallet Detection

Buddy tracks a curated list of wallets that consistently make profitable trades. When an elite wallet buys a token, Buddy automatically follows - bypassing all other filters.

95%
confidence
Priority Level 1

Coordinated Buying

When 3+ whale wallets buy the same token within a 3-second window, it signals coordinated accumulation. Buddy detects this pattern and enters immediately.

90%
confidence
Priority Level 2

Consecutive Whale Buys

Two or more whale transactions in a row indicate strong buying pressure. Buddy recognizes this momentum pattern and acts before retail catches on.

85%
confidence
Standard Analysis

Strict Filters + AI

For tokens without priority signals, Buddy applies strict filters (MC, transactions, traders, buy ratio, velocity) combined with AI prediction requiring 80%+ confidence.

70-80%
confidence
AI Model

The 6 Features Buddy Analyzes

Every token is evaluated on these exact metrics. The XGBoost model was trained on millions of PumpFun trades to learn which combinations predict success.

txn

Transaction Count

Total number of transactions on the token. Higher = more activity and interest.

traders

Unique Traders

Number of unique wallets that have traded. Filters out wash trading.

buy_ratio

Buy Ratio

Percentage of transactions that are buys vs sells. Buddy requires 80%+ buy pressure.

mc

Market Cap

Current market cap in SOL. Buddy targets specific MC ranges for optimal entry.

velocity

Velocity

Rate of market cap growth per second. Measures momentum and hype.

whale_count

Whale Count

Number of large transactions (5+ SOL). Whale activity often predicts pumps.

Model Pipeline

PumpFun Data
XGBoost Training
ONNX Export
Rust Inference
Adaptive Filters

Market-Adaptive Thresholds

These values adapt to market conditions in real-time. During high volatility, Buddy tightens filters. In calmer markets, it loosens them. The thresholds below are starting points — Buddy continuously optimizes based on what's actually working right now.

FilterConditionWhy
Market Cap< $15,000Entry before mainstream attention
Transactions> 30Enough activity to validate interest
Unique Traders> 20Real distribution, not wash trading
Buy Ratio> 80%Strong buying pressure
Velocity> 10 txn/minActive momentum

These values auto-adjust. Buddy tracks the success rate of each filter combination. If market conditions change (bull run, bear market, PumpFun meta shifts), Buddy automatically recalibrates to stay profitable.

Risk Management

Automatic Exit Strategies

Buddy doesn't just buy — it knows when to sell. Four exit strategies protect your capital and lock in profits automatically.

Stop Loss

IMMEDIATE
Trigger:Price drops below entry - 15%
Action:Sell 100% immediately

Take Profit

HIGH
Trigger:Price reaches 2x entry
Action:Sell 50% to lock gains

Trailing Stop

HIGH
Trigger:30% drop from peak (after 1.5x)
Action:Sell 100% to protect profits

Timeout

NORMAL
Trigger:Position held > 15 minutes
Action:Sell 100% regardless of P/L
Performance

Why Rust? 10x Faster.

Speed matters in memecoin trading. Buddy's Rust implementation delivers sub-50ms execution while Python bots struggle at 300ms+.

MetricPython BotsBuddy (Rust)
WebSocket Latency50-100ms1-5ms
Transaction Send100-200ms10-30ms
Memory Usage~500MB~50MB
Total Latency~300ms~30ms
Tokio
Async runtime for concurrent operations
Jito
MEV protection + faster transaction landing
Zero GC
No garbage collection pauses or crashes
Security

100% Local Execution

Buddy runs entirely on your machine. No cloud servers, no data collection, no third-party access to your keys or trades.

Local Only

Runs on your PC

Keys Stay Local

Stored in .env file

No Telemetry

Zero data collection

Offline Mode

Works without cloud

FAQ

Technical Questions

Ready to Trade Smarter?

Get Buddy now and let AI handle your PumpFun trading. Early bird pricing won't last forever.