How It Works
From token detection to trade execution β the full lifecycle of crustacean democracy.
Token Detection
The tank listens to PumpPortal's WebSocket for new tokens being created on PumpFun. Every new token triggers the council.
PumpPortal sends real-time data about new token creations including the mint address, creator info, and initial liquidity.
Data Collection
Birdeye API fetches comprehensive market data: market cap, liquidity, volume, holders count, top holder concentration, and more.
We wait 3 seconds after detection for data to propagate, then fetch metadata and market data in parallel for speed.
Council Analysis
Claude AI receives the token data and simulates each lobster analyzing it independently based on their unique personality.
Each lobster has different criteria: Chad loves volume, Nancy checks safety scores, Coral reads vibes, Snappy flips a coin (basically), and Papaclaw compares to historical patterns.
Democratic Vote
5 votes are cast. 3 out of 5 needed for BUY. The deciding "swing vote" is tracked. Every vote includes a reason in character.
If Papaclaw falls asleep (ABSTAIN), only 4 votes count and 3 are still needed. Unanimous decisions (5-0) are rare legendary events.
Trade Execution
If approved AND the score meets the minimum threshold (adjusted by tank mood), the trade is executed via PumpPortal.
Trade size is calculated based on balance percentage, modified by the tank state risk multiplier. In RED TIDE, Chad may bypass the vote entirely.
Position Monitoring
Open positions are checked every 30 seconds. Stop loss and take profit levels are dynamic based on the tank state.
In REEF PARADISE, stop loss is wider (-20%) and take profit is higher (+40%). In CHOPPY WATERS, both tighten. In TANK BREACH, it's YOLO.
Tank Evolution
Every win raises water level, every loss drops it. The tank state changes dynamically, affecting all future decisions.
The system is self-regulating: bad streaks make the tank more cautious (CHOPPY WATERS), but extreme losses make it YOLO (TANK BREACH). Recovery streaks restore order.
Architecture
PumpPortal WS Birdeye API Claude AI
| | |
v v v
βββββββββββββββ ββββββββββββββββ ββββββββββββββββ
β New Token ββββββββ> β Market Data βββββββ> β Council β
β Detection β β Collection β β Analysis β
βββββββββββββββ ββββββββββββββββ ββββββββ¬ββββββββ
|
v
ββββββββββββββββ
β 5 Lobsters β
β VOTE β
β 3/5 = BUY β
ββββββββ¬ββββββββ
|
ββββββββββββββββββββββΌβββββββββββββββββββββ
v v v
ββββββββββββββ ββββββββββββββββ ββββββββββββββββ
β SKIP β β EXECUTE BUY β β Monitor β
β Token β β via PumpPortalβ β Positions β
ββββββββββββββ ββββββββ¬ββββββββ ββββββββ¬ββββββββ
| |
v v
ββββββββββββββββ ββββββββββββββββ
β Supabase β β Stop Loss / β
β Database β β Take Profit β
ββββββββββββββββ ββββββββββββββββ
|
v
ββββββββββββββββ
β Website β
β Dashboard β <ββ Realtime Updates
ββββββββββββββββ