# Polymarket Whale Trades Tracker (`splendorous_astrolabe_xs9/polymarket-whale-trades`) Actor

Track large Polymarket trades in real time. Configurable USD threshold, per-wallet aggregation, clean JSON. Works via API, schedules, and MCP.

- **URL**: https://apify.com/splendorous\_astrolabe\_xs9/polymarket-whale-trades.md
- **Developed by:** [Mike](https://apify.com/splendorous_astrolabe_xs9) (community)
- **Categories:** AI, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 whale trades

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Polymarket Whale Trades Tracker

A **Polymarket whale tracker** for finding out who is moving real money — right now. This Actor scans the public Polymarket trade tape and returns every **large trade** above your USD threshold, with a clean flat schema and a **per-wallet aggregation summary** so you instantly see which wallets are accumulating and what they're buying.

If you're hunting **smart money** — the wallets that consistently show up with size before a market moves — this is the raw feed: configurable whale threshold, per-wallet buy/sell flow, and a single-market mode for watching one event's tape.

### Why this tracker

- **Configurable thresholds** — set your own `min_usd` (from $100 "smart money" up to $1M+ true whales) and lookback window up to 14 days, instead of a fixed definition of "whale".
- **Clean flat schema** — every row is a self-contained record (wallet, side, outcome, price, USD size, market title/slug, timestamp, tx hash). No nested blobs to unpack; export straight to CSV/Excel/Sheets.
- **Per-wallet aggregation built in** — the dataset also contains `wallet_summary` rows: total USD flow, buy vs sell split, net direction, distinct markets, largest trade. The run's `OUTPUT` record includes the top-10 wallets, ready for alerting.
- **Single-market mode** — pass a `market_slug` to watch the whale flow in one specific market (e.g. an election or a BTC daily market).

### What you get

Trade rows (`record_type: "trade"`):

```json
{
  "record_type": "trade",
  "wallet": "0xd27cc742d023d06ef633a4c880cf1ff1836ec081",
  "wallet_name": "madkkee",
  "wallet_pseudonym": "Distant-Pomelo",
  "side": "SELL",
  "outcome": "Up",
  "outcome_index": 0,
  "price": 0.999,
  "size_shares": 7390,
  "size_usd": 7382.61,
  "market_title": "Bitcoin Up or Down on August 4?",
  "market_slug": "bitcoin-up-or-down-on-august-4-2026",
  "event_slug": "bitcoin-up-or-down-on-august-4-2026",
  "condition_id": "0x80942ae64f933f081751b480735e86e6abe437f05444e269d5c53b25430caccf",
  "timestamp": 1785858804,
  "datetime_utc": "2026-08-04T05:13:24+00:00",
  "transaction_hash": "0xa02d161a6b72a718c0a9ea00ef9d6887118c64442d2d1b21f36ba97941a8002c"
}
```

Wallet summary rows (`record_type: "wallet_summary"`), sorted by total USD:

```json
{
  "record_type": "wallet_summary",
  "wallet": "0xd3bc2022...",
  "trades": 12,
  "total_usd": 184220.5,
  "buy_usd": 141002.0,
  "sell_usd": 43218.5,
  "net_buy_usd": 97783.5,
  "distinct_markets": 3,
  "largest_trade_usd": 51000.0,
  "first_seen_utc": "2026-08-03T09:12:44+00:00",
  "last_seen_utc": "2026-08-04T04:58:01+00:00"
}
```

Filter on `record_type` to get only trades or only summaries.

### Input

| Field | Default | Description |
|---|---|---|
| `min_usd` | 5000 | Minimum notional trade size in USD |
| `lookback_hours` | 24 | How far back to scan (max 336 h / 14 days) |
| `market_slug` | — | Optional: restrict to one market |
| `taker_only` | true | One row per fill (taker side); disable to include maker side |
| `max_trades` | 1000 | Safety cap on returned trades |

### Use cases

#### Smart-money alerts

Schedule hourly, diff against the previous run, get pinged when a whale enters your market.

#### Copy-trading research

Find consistently active large wallets, then analyze them (pairs perfectly with a wallet P\&L analyzer) before deciding whether to follow.

#### Market microstructure and journalism

Quantify how much of a market's move was driven by a handful of wallets — every row carries the tx hash for verification.

### Using from Claude / AI agents (MCP)

Add Apify's MCP server (`https://mcp.apify.com`) to Claude, Cursor, or any MCP-capable agent and this tracker becomes a tool your agent can call mid-conversation:

```json
{
  "tool": "polymarket-whale-trades",
  "input": { "min_usd": 20000, "lookback_hours": 6 }
}
```

Ask your agent: *"Any whale trades over $20k on Polymarket in the last 6 hours, and which wallets were net buyers?"* — one run, and the wallet summaries answer the second half for free.

### Data source and fair use

Uses only Polymarket's **public, unauthenticated** data APIs. No login, no keys, no scraping of private data. Wallet addresses and usernames shown are already public on polymarket.com. The public tape paginates to a depth of roughly 3,500 matching trades per query; if your filter is so broad the cap is hit, the run reports `tape_capped: true` in `OUTPUT` so coverage is always honest.

### Pricing

Pay per event: a small flat fee per run start plus a fraction of a cent per whale trade returned. A typical default run (24 h, $5k threshold) costs well under $1.

# Actor input Schema

## `min_usd` (type: `integer`):

Only trades whose notional value (shares × price) is at least this many US dollars are returned. Lower it to 1000 to catch mid-size players, raise it to 25000 for true whales only.

## `lookback_hours` (type: `integer`):

How far back in time to scan the public trade tape. The tape is scanned newest-first and stops at this cutoff.

## `market_slug` (type: `string`):

Restrict results to a single market by its slug (the last part of the polymarket.com market URL, e.g. `bitcoin-up-or-down-on-august-4-2026`). Leave empty to scan all markets.

## `taker_only` (type: `boolean`):

When enabled (recommended), each fill appears once, attributed to the aggressive (taker) side. Disable to also see the passive maker side of each fill — rows may then represent the same fill twice.

## `max_trades` (type: `integer`):

Safety cap on the number of whale trades returned in one run.

## Actor input object example

```json
{
  "min_usd": 5000,
  "lookback_hours": 24,
  "taker_only": true,
  "max_trades": 1000
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "market_slug": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("splendorous_astrolabe_xs9/polymarket-whale-trades").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "market_slug": "" }

# Run the Actor and wait for it to finish
run = client.actor("splendorous_astrolabe_xs9/polymarket-whale-trades").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "market_slug": ""
}' |
apify call splendorous_astrolabe_xs9/polymarket-whale-trades --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,splendorous_astrolabe_xs9/polymarket-whale-trades"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/LoR7KF4dfOCin4ImA/builds/dy34WdIpsP0mwaQq1/openapi.json
