# ๐Ÿ‹ polymarket-whales CLI whale tracker for Polymarket โ€” terminal alerts when smart money moves. [Quick Start](#-quick-start) ยท [Configuration](#๏ธ-configuration) ยท [Features](#-features) ยท [Contributing](#-contributing) ![demo](https://raw.githubusercontent.com/al1enjesus/polymarket-whales/main/assets/demo.gif)
--- ## What is this? `polymarket-whales` monitors the [Polymarket](https://polymarket.com) 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](https://t.me/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 ```bash 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: ```env 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](https://t.me/BotFather) โ†’ `/newbot` โ†’ copy the token 2. Message [@userinfobot](https://t.me/userinfobot) โ†’ copy your chat ID 3. Paste both into `.env` > **Just want alerts without setup?** โ†’ [Join @polymarketwhales_ai](https://t.me/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:** ```bash nohup python main.py > whales.log 2>&1 & ``` **Custom config path:** ```bash python main.py --config /path/to/config.yaml ``` **Export whale trades to CSV or JSON:** ```bash 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: - [x] Discord / Slack webhook support _(merged โ€” thanks [@Deepak8858](https://github.com/Deepak8858)!)_ - [x] Historical whale data export (CSV / JSON) _(merged โ€” thanks [@Deepak8858](https://github.com/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](https://t.me/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`: ```env HTTPS_PROXY=http://your-proxy:port ``` **Option B โ€” Use PolyClawster's relay (recommended)** [PolyClawster](https://polyclawster.com) 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`: ```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](https://polyclawster.com) AI agents to trade Polymarket 24/7 from any country. --- ## ๐Ÿค– Want trades executed automatically? This tool watches. [PolyClawster](https://polyclawster.com) acts. AI agent that copies whale moves and trades Polymarket 24/7 โ€” works from any country, no VPN, no KYC, start with $10. [![PolyClawster](https://img.shields.io/badge/PolyClawster-Trade%20Automatically-8b5cf6?style=for-the-badge)](https://polyclawster.com) --- MIT ยท Built by [Virixlabs](https://virixlabs.com)