@0xpanatagama·39 charts
"When Do Whales Strike?"
Whale trades don't happen randomly throughout the day. Panel A tests whether whale activity clusters at specific hours using a Poisson goodness-of-fit test. The analysis calculates expected events per hour assuming uniform distribution, then compares observed counts.
Hours with Z-scores above 1.96 show significantly more whale activity than chance (p < 0.05), while Z-scores above 2.576 indicate extreme bursts (p < 0.01). A chi-squared test across all 24 hours determines if the overall distribution is non-uniform. For traders, this identifies "whale hours" when large trades are statistically more likely — times to avoid unprotected limit orders or widen stops. If peaks align with London or New York opens, it reveals which institutional cohorts drive HyperEVM flows.
Decision Fatigue
This panel tests whether whale activity and quality decline throughout the day — a phenomenon known as decision fatigue. Linear regressions run on hourly metrics: event frequency (do whales trade less later?), average whale score (do later trades pass fewer statistical tests?), and conviction rate (do extreme whales become less common?). Negative slopes with significant t-statistics confirm fatigue. For traders, fatigue hours offer lower volatility and better limit fill prices, while quality decay suggests late-session whale moves are less informed and more exploitable. Phase-level analysis (Dawn/Morning/Midday/Evening) provides a quick visual check for concentrated activity windows.
Synchronized Whale
Sometimes whale trades hit multiple tokens within minutes of each other. Panel D detects these "whale storms" by counting distinct tokens with whale events in 3-minute windows. Classifications range from PAIR (2 assets) to MEGA_SYNC (5+ assets). Synchronous events signal either a single whale operating across markets, multiple whales reacting to the same catalyst, or cascading contagion. High daily sync counts indicate correlated volatility across tokens and potential systemic risk. Tokens that consistently co-occur reveal hidden correlations or arbitrage relationships invisible in price charts alone.
Composite Temporal Risk
Panel E synthesizes the previous four dimensions into a single 0–10 risk score per hour. The composite weights Poisson burst intensity (40%), cross-asset synchronicity (30%), and whale conviction quality (30%). Scores above 7.0 mark CRITICAL hours combining high activity, coordination, and quality. Scores 5.0–7.0 are HOT, 3.0–5.0 are WARM, and below 3.0 are QUIET. This becomes a scheduling tool for protocol deployers and a volatility forecast for traders. The gap between highest and lowest scores reveals whether whales have concentrated temporal preferences; creating arbitrage opportunities between quiet and hot hours or remain uniformly present requiring constant vigilance.
Asset Concentration Analysis: Whale Event Distribution
Research Question: "Are whale events uniformly distributed across tokens, or do whales disproportionately target specific assets?"
Statistical Framework
Null hypothesis (H₀): Whale events are distributed across tokens proportionally to each token's total trade count (i.e., whales show no preference - they're just trading "randomly" in proportion to market activity).
Alternative (H₁): Whale events are concentrated in certain tokens beyond what proportional trading would predict.
Test statistic: χ² = Σ (Observed_i - Expected_i)² / Expected_i where Expected_i = (token_i total trades / grand total trades) × total whale events.
Degrees of freedom: k - 1 (where k = number of tokens) Critical values (for reference):
- k=5 → df=4 → χ²₀.₀₅ = 9.49, χ²₀.₀₁ = 13.28
- k=10 → df=9 → χ²₀.₀₅ = 16.92, χ²₀.₀₁ = 21.67
- k=20 → df=19 → χ²₀.₀₅ = 30.14, χ²₀.₀₁ = 36.19
- k=50 → df=49 → χ²₀.₀₅ = 66.34, χ²₀.₀₁ = 76.15
If the computed χ² exceeds the critical value, we reject H₀ — whales are targeting specific tokens non-randomly.
Interpreting the Results
What to look for:
χ² verdict = REJECT H₀? → Yes: whales demonstrably target specific tokens. The distribution is NOT random → The tokens with highest chi_sq_component are the primary drivers.
Which tokens have O/E ratio > 2.0? → These are "whale magnets" - receiving 2×+ more whale activity than their trading volume would predict.
Does the scatter chart (Viz A3) show an inverse pattern? → If yes: confirms the hypothesis finding that whales disproportionately target lower-liquidity tokens where their trades have more impact. This is the "small economy intervention" analog where whales choose markets where their capital moves the needle most.
Normalized Entropy < 0.5? → Whale activity is HIGHLY concentrated in a few tokens. Below 0.75 is noteworthy. → Combined with Gini > 0.4, this paints a picture of significant inequality.
Stacked area chart shifting colors? → Whale attention is rotating between tokens week-to-week (possible catalyst-driven) → Stable colors = persistent concentration (structural, not event-driven).
🐋 Whale Detection
Methodological Framework
Problem Statement: Detect statistically anomalous large trades ("whale events") on HyperEVM DEXes in a way that is:
- Adaptive: thresholds adjust per token (a $50K trade is normal for WETH, massive for a micro-cap)
- Multi-criteria: no single metric; combines complementary statistical tests
- Robust to outliers: uses median-based statistics that don't break when whales are present
Solution: The whale detection pipeline operates through five distinct analytical layers, each building upon the previous to progressively refine trade classification.
Layer 1 Establishes daily baselines. For every token, each day, calculate median, mean, volatility, and percentile thresholds using distribution-aware statistics.
Layer 2, Rolling Context. A 50-trade lookback window captures recent market conditions, excluding the current trade to prevent self-contamination (where a whale trade would distort its own baseline).
Layer 3 Implements multi-criteria anomaly scoring through four concurrent tests. Trades must pass multiple independent tests:
- Size Test: Trade exceeds 5× the daily median
- Volatility Test: Z-score above 3.0 against rolling averages
- Robust Test: Modified Z-score using median-based deviation (resistant to outlier distortion)
- Percentile Test: Trade ranks above 95th percentile for that token-day
Layer 4 Translate test results into confidence scoring (whale classification system): 0–4 scale based on tests passed. Higher scores mean higher confidence. A trade passing 4/4 tests is fundamentally different from one passing 1/4.
Finally, Layer 5 Enriches these classifications with additional context including wallet recurrence patterns, token-specific metadata, and relative magnitude indicators to provide comprehensive whale activity profiling.
Protocol coverage
The whale detection engine scans all major DEX protocols on HyperEVM, combining Dune's indexed dex.trades data with manually decoded swap events from protocols not yet covered by the Spellbook; PRJX, HyperSwap, Hybra, RamsesXYZ, WooFi, Balancer V3, Nest CL, Hybra v2. Without manually parsed protocols, the query would only see trades indexed in dex.trades, roughly a fraction of HyperEVM DEX volume on Dune.