PUMP BOT

ASYNC PYTHON TRADING SYSTEMS DEMO · PAPER MODE

Production-style architecture for low-latency event processing, applied to pump.fun memecoin trading. Built to demonstrate systems engineering — not as a profitable strategy. The trading layer is a paper-mode test bed for the systems work underneath.

~70 ms
DECISION LATENCY
1 → 8
WS PUB/SUB FAN-OUT
23 / 23
CI TESTS GREEN
2
DEPLOY TARGETS · DOCKER + SYSTEMD
VIEW SOURCE ON GITHUB CI ARCHITECTURE

Equity curve

PAPER BALANCE OVER TIME
-- hover for details --

What this project demonstrates

~5,000 LOC async Python. Single developer. Honest limitations →

Architecture

DATA FLOW

PumpPortal WS → pub/sub fan-out → 3 consumers (tracker, wallet_intel, monitor) → signal_scorer → trade_loop → trader/executor (Jupiter or PumpPortal local-tx) → risk_manager watches positions → exits via TP ladder, trailing stop, or breaker

ModuleLinesResponsibility
detector/pumpfun_monitor~210Single shared PumpPortal WS, pub/sub fan-out
detector/wallet_intel~210Bot-wallet accumulator + bundled-launch detection
detector/creator_tracker~180Persistent leaderboard of pump.fun creators
analyzer/signal_scorer~3704-factor 0-100 score, hard filters, queueing
analyzer/counterfactual~190Re-polls rejected tokens 10 min later
risk/manager~470Sizing, TP ladder, stops, circuit breakers
trader/executor~250Smart router: Jupiter vs PumpPortal local-tx
logger/web_server~210aiohttp dashboard at :8765, 7 API endpoints
web/dashboard.html~1100Single-file SPA with custom SVG equity chart

Where the edge comes from

1. ADAPTIVE POSITION SIZING (KELLY-LITE)

Rolling 20-trade win rate scales position size: 0.6× when cold (≤30% WR), 1.0× normal, 2.0× when hot (≥55% WR). Captures more SOL during momentum stretches, less during regime shifts. Hard cap at 2.5× to prevent ruin.

2. MOONSHOT-OPTIMIZED TAKE-PROFIT LADDER

Sells small slices at +75% / +300% / +800%, keeps final 30% riding the trailing stop with no upper cap. Trailing widens to 35% from peak once peak exceeds +100% so power-law winners aren't clipped on normal pullbacks.

3. COUNTERFACTUAL LOOP — OBSERVABILITY, NOT VALIDATION

Every rejected token gets re-polled 10 min later for market-cap delta and exit reason. Useful as observability — it shows what each filter is killing. Not a held-out validation: pump.fun’s base rate is >95% rug, so any filter looks “validated” against an unfiltered universe. The honest experiment splits train/test and checks whether rejects underperform the base rate on a held-out set. Tracked as future work in the README.

4. CIRCUIT BREAKERS

Three independent layers: 6 consecutive losses → 10 min pause, −25% day → halt until UTC midnight, −40% lifetime → emergency stop. Fired 5 times overnight, each preventing what would have been deeper losses during regime shifts.

Numbers

CANONICAL RUN · REALISTIC_PAPER_SIM=1
Window2026-04-19 → live
Starting bankroll1.0 SOL (virtual)
Closed trades~2,940
Win rate~42%
Largest single winner+463%
Top ticker (OHIO)20 entries · 41.9% of total PnL
Top 3 / Top 5 tickers67.7% / 79.2% of total PnL

Earlier snapshots circulating elsewhere (1,521 trades / +7,100% / +7,284%) are pre-realistic-friction-sim and superseded by the run above.

Tech stack

Python 3.12+ asyncio aiohttp websockets solders sqlite3 Solana RPC Helius Jupiter PumpPortal Docker systemd GitHub Actions ruff mypy pytest

Production reliability

Limitations

The paper sim is up 100× on a realistic-friction model — that is a real result inside the simulator. Whether it survives a move to real money is unknown, and there are honest open questions worth flagging:

The portfolio value of this project is the systems engineering: async pipeline, dual-write persistence, CI / Docker / systemd floor, observability stack. The trading layer is a working test bed for that engineering.

Hire me

Open to remote Solana / Python / Web3 backend roles. Available for contract or full-time. Based in Las Vegas, NV.

EMAIL DENNIS GITHUB REPO PROFILE