Skip to main content
Ultra Feature. Requires an Ultra subscription. Get started at api.mathematicalcompany.com
Scan the entire Polymarket ecosystem to discover top-performing wallets, detect coordinated trading clusters, and automatically target the best whales for copy trading.

Full Code

How It Works

  1. scan_galaxy() queries Polymarket for the most active wallets, scores each one, and returns a ranked list with categories (whale, shark, bot, retail)
  2. detect_clusters() finds groups of wallets that trade in coordination (potential insider rings or copy-bot networks)
  3. auto_target() selects the best wallets to copy based on score, excluding bots and already-clustered addresses
  4. galaxy_hunt() executes the copy strategy across all targets; use dry_run=True to preview

Pipeline Mode

Run the galaxy tracker as a continuous pipeline function:
The tracker periodically re-scans the galaxy and injects whale alerts into ctx.params["whale_alerts"] for downstream pipeline stages.

Run It

See Whale Galaxy for the full reference.