Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/alphaleaks60-maker/solvedocs2/llms.txt

Use this file to discover all available pages before exploring further.

Pump.fun is adversarial by design. A significant share of activity on the platform is not organic price discovery — it is coordinated manipulation, bot noise, and deliberate traps set for retail participants. Alpha Leak runs a dedicated layer of adversarial detectors that identify these patterns and ensure the trading system never acts on manufactured signals. Each detection method feeds independently into both the ML feature vector and the AntiSignalEmitter, which is the final gate before any position is opened.

Threat Coverage

ThreatDetection MethodResponse
Bundle / coordinated buyBundleDetector (5s time windows)Token flagged, bundle_confidence ML feature raised
Bot noiseBotDetector (3 behavioral patterns)Wallet capped at alpha 30, is_bot ML feature set
Serial ruggerCreatorRiskScorer (rug rate, lifetime, insiders)creator_risk_score ML feature raised, anti-signal trigger
Copy-trade follower signalCopyTradeDetector (directional consistency)Signal downweighted, originator vs follower resolved
Wash tradingToken risk scorer (buy/sell pattern analysis)wash_trade_pct ML feature, anti-signal trigger at >30%
Exit liquidity trapAntiSignalEmitter (smart wallets selling into retail)Anti-signal emitted, open position force-exited
Crowded tradeSignalCrowdingDetector (tracked SOL vs curve SOL)Score penalty up to 50%, Redis cached per token

Detection Mechanisms

Bundles are the most common form of coordinated manipulation on Pump.fun. A group of wallets — often controlled by the same operator — buys a token within the same few seconds at or near launch. This creates the appearance of organic momentum while actually front-running the curve for a later dump.The BundleDetector groups trades into 5-second time buckets and identifies clusters of 3+ wallets buying the same token in the same window. Each cluster is then scored on two independent dimensions:Amount uniformity (coefficient of variation < 0.3): Are the buy sizes suspiciously similar? Random wallets rarely buy the exact same SOL amount within the same window.Rank continuity (rank span ≤ wallet count): Are the buy ranks consecutive? Consecutive buy ranks in a tight time window indicate the wallets transacted in rapid succession from the same source.

same_slot_coordinated

Both amount uniformity and rank continuity criteria met. The strongest form of bundle evidence.

similar_amounts

Similar buy sizes but non-consecutive ranks. Coordination is likely but less certain.

time_window

Only time proximity met. Weakest classification — flags for additional scrutiny.
The confidence score (0.3–1.0) feeds into the ML model as token_bundle_confidence and into the AntiSignalEmitter as an independent trigger.

Anti-Signal Logic

The AntiSignalEmitter is the system’s last line of defense before capital is deployed. It scans every token with an active buy signal every 30 seconds, checking six independently computed risk signals. Any two triggers firing simultaneously is sufficient to emit an anti-signal.
Anti-signal fired when ≥ 2 of:

1. Creator risk score > 80
   "Creator [X] has 85% rug rate across 47 tokens"

2. Insider buyer pct > 40%
   "62% of buyers are insiders/bundled wallets (8/13)"

3. Exit liquidity pattern
   "4 smart wallets selling (12.3 SOL) while retail buying (3.1 SOL)"

4. Wash trade pct > 30%
   "41% of volume appears to be wash trading"

5. Bot buyer pct > 60%
   "78% of buyers are bots"

6. Bundle confidence > 70% + bundle buyer pct > 30%
   "Coordinated bundle (82% confidence, 45% of buyers)"
The multi-trigger design is intentional. Any single metric can be noisy — a 70% bot buyer rate on a brand-new token might simply mean no humans have discovered it yet. When 3 or 4 triggers fire simultaneously, the evidence is overwhelming. Each anti-signal payload includes the full evidence object with the specific numbers, logged and stored for auditing.
Anti-signals published to trade:signals are consumed by the live trader, which immediately force-exits any open position in the flagged token.

Exit Liquidity Detection

The exit liquidity trigger is one of the most reliable indicators of a dump in progress, and it deserves particular attention because it exploits the system’s own signal history against it.
1

Smart money established a position

A token has had smart-wallet buy signals in the last 15 minutes, creating the appearance of a high-conviction trade.
2

Smart money begins selling

Those same smart wallets are now selling — their exits are detected in the last 10-minute window.
3

Retail fills the gap

Simultaneously, retail wallets (not in the tracked set) are buying, absorbing the smart-money exits.
4

Anti-signal fires

The detector computes tracked sell SOL vs retail buy SOL ratio as evidence, then fires the anti-signal and force-exits any open position immediately.
This is the classic exit liquidity setup: smart money established a position, created momentum or a signal, and is now using retail buying to get out. The anti-signal fires and exits any position immediately — no waiting for stop-loss levels.

Build docs developers (and LLMs) love