Skip to content

Latest commit

Β 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ‹ polymarket-whales

CLI whale tracker for Polymarket β€” terminal alerts when smart money moves.

Quick Start Β· Configuration Β· Features Β· Contributing

demo


What is this?

polymarket-whales monitors the Polymarket CLOB API and fires an alert the moment a trade above your threshold hits the books. Prints to terminal with color-coded output. No sign-up, no API key, no infrastructure. Just Python.

Don't want to self-host? Subscribe to the live whale feed on Telegram: @polymarketwhales_ai


πŸ“‹ Example Output

══════════════════════════════════════════════════
πŸ‹  polymarket-whales
══════════════════════════════════════════════════
  Min trade size : $500
  Check interval : 30s
══════════════════════════════════════════════════

πŸ‹ WHALE ALERT  2026-03-20 14:23:01
───────────────────────────────────────────
Market : Will Trump tweet about crypto today?
Side   : YES
Amount : $2,847.00
Price  : 0.7300  (73% YES)
───────────────────────────────────────────

πŸ‹ WHALE ALERT  2026-03-20 14:26:44
───────────────────────────────────────────
Market : Fed rate cut in March 2026?
Side   : NO
Amount : $12,500.00
Price  : 0.3100  (69% NO)
───────────────────────────────────────────

⚑ Quick Start

git clone https://github.com/al1enjesus/polymarket-whales
cd polymarket-whales
pip install -r requirements.txt
python main.py

That's it. Terminal alerts start immediately. No config needed to get started.


βš™οΈ Configuration

Copy .env.example to .env and edit:

MIN_TRADE_SIZE=500        # USD β€” only alert above this
CHECK_INTERVAL=30         # seconds between polls

# Optional β€” Telegram push alerts
TELEGRAM_BOT_TOKEN=...
TELEGRAM_CHAT_ID=...
DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/...

Or edit config.yaml directly. Environment variables take priority.

Telegram setup (optional):

  1. Message @BotFather β†’ /newbot β†’ copy the token
  2. Message @userinfobot β†’ copy your chat ID
  3. Paste both into .env

Just want alerts without setup? β†’ Join @polymarketwhales_ai


✨ Features

  • βœ… Real-time polling of the Polymarket CLOB API
  • βœ… Configurable minimum trade size (USD)
  • βœ… Colorized terminal output β€” YES in green, NO in red
  • βœ… Optional Telegram push alerts to any chat or channel
  • βœ… Optional Discord webhook alerts
  • βœ… Export whale trades to CSV or JSON (--export whales.csv)
  • βœ… Auto-resolves market names from condition IDs
  • βœ… Trade deduplication β€” no double alerts
  • βœ… Graceful handling of network errors and API timeouts
  • βœ… No database, no Docker, no setup beyond pip install

πŸ› οΈ Advanced

Run in background:

nohup python main.py > whales.log 2>&1 &

Custom config path:

python main.py --config /path/to/config.yaml

Export whale trades to CSV or JSON:

python main.py --export whales.csv
python main.py --export whales.json

24/7 on a VPS: Any $5/month VPS works β€” the script uses <10MB RAM.


🀝 Contributing

Good first issues:

  • Discord / Slack webhook support (merged β€” thanks @Deepak8858!)
  • Historical whale data export (CSV / JSON) (merged β€” thanks @Deepak8858!)
  • Filter by specific market or category
  • Track and tag recurring whale wallets
  • Alert cooldown per market (avoid spam)
  • Web dashboard (simple Flask/Streamlit UI)

Open an issue or send a PR β€” both welcome.


πŸ“‘ Community & Live Whale Feed

Join @polymarketwhales_ai on Telegram:

  • πŸ‹ Live feed of large trades β€” real-time, no setup required
  • πŸ’¬ Community chat β€” discuss strategies, share setups, post your whale catches
  • πŸ€– AI bot connected β€” ask questions, get market context, analyze trades

Whether you're running the script or just lurking for signals β€” this is the place.


🌍 Blocked by geo-restrictions?

Polymarket is unavailable in the US and some other countries. If you can't access it, you have two options:

Option A β€” Self-host with a VPN/proxy Point the script at a proxy by setting HTTPS_PROXY in .env:

HTTPS_PROXY=http://your-proxy:port

Option B β€” Use PolyClawster's relay (recommended)

PolyClawster runs a transparent proxy to clob.polymarket.com, deployed in Tokyo (outside US geo-blocks). It routes your API calls on their behalf β€” your requests never touch Polymarket directly.

  • 🚫 No VPN needed
  • 🚫 No KYC
  • βœ… Full Polymarket CLOB API access from any country
  • βœ… One line of config

Set in .env:

POLYMARKET_API_URL=https://polyclawster.com/api/clob-relay

Then in main.py the script will use this base URL for all CLOB requests instead of hitting Polymarket directly.

The relay is the same infrastructure used by PolyClawster AI agents to trade Polymarket 24/7 from any country.


πŸ€– Want trades executed automatically?

This tool watches. PolyClawster acts.
AI agent that copies whale moves and trades Polymarket 24/7 β€” works from any country, no VPN, no KYC, start with $10.

PolyClawster


MIT Β· Built by Virixlabs

About

πŸ‹ Real-time whale trade tracker for Polymarket β€” get terminal alerts + Telegram notifications when smart money moves

Topics

Resources

Stars

62 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages