Build a Polymarket whale bot in 20 lines.
A bot that watches every $10K+ Polymarket buy and tells you who made it: a proven winner, a brand-new wallet, or a trader who keeps losing. It runs on our free JSON API, needs no key, and can post straight into your Discord.
Install one package
pip install requests
JavaScript instead? Skip this: the Node 18+ version below needs no packages.
Paste this and run it
# whale_bot.py -> python whale_bot.py
import time
import requests # pip install requests
API = "https://whalereceipts.com/api/v1/alerts"
KEY = "" # real-time key from whalereceipts.com/api (blank = free, 20 min delay)
DISCORD_WEBHOOK = "" # optional: Server Settings > Integrations > Webhooks > Copy Webhook URL
MIN_USD = 10000
since = None
while True:
params = {"side": "BUY", "min_usd": MIN_USD, "limit": 25}
if since:
params["since"] = since
headers = {"Authorization": f"Bearer {KEY}"} if KEY else {}
data = requests.get(API, params=params, headers=headers, timeout=20).json()
for a in reversed(data["alerts"]): # oldest first
t = a["trader"]
line = (f"${a['usd']:,.0f} on {a['pick']} at {a['price'] * 100:.0f}c | {a['market']['title']}\n"
f" {t['tag']} trader, all-time P&L {t['all_time_pnl']:+,.0f} | {t['page']}")
print(line)
if DISCORD_WEBHOOK:
requests.post(DISCORD_WEBHOOK, json={"content": line}, timeout=20)
since = data["next_since"] or since
time.sleep(30)
Every 30 seconds it asks for buys newer than the last one it saw. tag is PROVEN (up $50K+ all-time), NEW WALLET (5 trades or fewer), LOSING (down all-time) or TRADER.
Send it to Discord (optional)
In your server: Server Settings → Integrations → Webhooks → New Webhook → Copy Webhook URL. Paste it into DISCORD_WEBHOOK. Every whale buy now shows up in that channel.
Only the bets you care about
tag=PROVEN | Only wallets up $50K+ all-time |
tag=NEW WALLET | Brand-new wallets betting big (the insider-style ones) |
min_usd=50000 | Only $50K+ bets |
copyable=1 | Only wallets whose past bets made money at the price you could really get (experimental) |
side=SELL | Whales cashing out instead of buying |
JavaScript (Node 18+)
// whale-bot.mjs -> node whale-bot.mjs (Node 18+, no packages)
const API = "https://whalereceipts.com/api/v1/alerts";
const KEY = ""; // real-time key from whalereceipts.com/api (blank = free, 20 min delay)
const MIN_USD = 10000;
let since = null;
while (true) {
const q = new URLSearchParams({ side: "BUY", min_usd: MIN_USD, limit: 25, ...(since && { since }) });
const res = await fetch(`${API}?${q}`, { headers: KEY ? { Authorization: `Bearer ${KEY}` } : {} });
const data = await res.json();
for (const a of data.alerts.reverse()) { // oldest first
console.log(`$${Math.round(a.usd).toLocaleString()} on ${a.pick} at ${Math.round(a.price * 100)}c | ${a.market.title}`);
console.log(` ${a.trader.tag} trader, all-time P&L ${Math.round(a.trader.all_time_pnl).toLocaleString()} | ${a.trader.page}`);
}
since = data.next_since ?? since;
await new Promise((r) => setTimeout(r, 30000));
}
Want it the second it fills?
The free API is 20 minutes late and returns 25 alerts per call. A real-time key ($29/month) removes the delay and returns up to 500. Set it as KEY; nothing else changes.
Honest fine print. This bot alerts, it doesn't trade. In our data, blindly copying every whale lost money once you pay the price you'd really get, and 85¢+ buys were the worst. Use the trader's record and the price, not just the size. Public Polymarket data, not affiliated with Polymarket, not financial advice. Machine-readable spec: openapi.json.
Rather not run code? Get the alerts in Discord.
Every $5K+ trade the second it hits Polymarket, with the trader's real record, the price you can still get, and a ⚠️ when a buy is a trap. Free for 3 days, no card: join our Discord and Premium switches on by itself.
The Whale Report: the week's biggest Polymarket wins and losses, in your inbox. See this week's →