Solana Trading Bot

Open source · 2026

From signal to execution. Solana markets produce more noise than signal. This research engine streams program activity, detects wallet clusters inside rolling windows and runs each candidate through offline-mined rules, a runtime ML qualifier, rug checks and portfolio risk gates before paper or live execution.

ROLEArchitecture · Engineering
STACKPython · Yellowstone gRPC · ML systems · Risk engine
STATUSOpen source
WALLET-CLUSTER ENGINE PAPER / LIVE
INGEST / YELLOWSTONE gRPCProgram activityPUMP.FUN · RAYDIUM · AMM
ROLLING WINDOW / 30SWallet clusterN BUYERS · TX COUNT · SOL VOLUME
BOTRUNNER / EVENT LOOPCandidate signalRUNTIME FEATURE SNAPSHOT
RULE MATCHERCSV PACK
TOKEN AGE MATCH 30S VOLUME MATCH PRICE IMPACT MATCH MARKET REGIME MOMENTUM
RUG RATE → 5X HIT RATE → SUPPORT
ML QUALIFIERLOGISTIC
P(CLOSE +)PROBABILITY> THRESHOLD
OFFSHADOWGATE
RETRAINS FROM CLOSED TRADES
RUG CHECKSPRE-SIGN
MINT AUTHORITY FREEZE AUTHORITY TOP-5 HOLDERS JUPITER QUOTE
FAILED CHECK → REJECT
QUOTEJUPITERSIGNLOCAL SIGNERBROADCASTHELIUS RPCRISK GATES BEFORE SIGNING
01 / Challenge

What had to change

New Solana launches arrive faster than a person can inspect them, and most raw activity is noise. An automated strategy therefore needs more than speed: it needs repeatable detection, explainable qualification, execution controls and hard limits for when it must do nothing.

02 / Approach

The decisive move

The engine separates discovery, qualification, risk and execution into asynchronous stages. Yellowstone streams program activity; rolling windows identify wallet clusters; offline-mined rules and a logistic model score candidates; rug checks and portfolio gates can reject a trade before Jupiter execution is considered.

03 / Delivery

What the build covered

The repository includes event ingestion, feature and rule pipelines, runtime ML qualification, configurable strategy controls, paper/live modes, position management and the operational interfaces needed to inspect why a candidate progressed or stopped.

IngestionYellowstone gRPC · Solana program events
SignalWallet clusters · Rolling windows · Offline rules
QualificationLogistic ML · Rug checks · Risk gates
ExecutionJupiter · Paper/live modes · Position controls
04 / Outcome

Why it matters

The result is an inspectable research engine rather than an opaque trading script. It demonstrates event-driven Python architecture, streaming data, applied ML, blockchain integration and risk-aware automation in one system.

View on GitHub