# Polymarket Whale Tracker — Pro (`apimie/polymarket-whales-pro`) Actor

Richer Polymarket whale data: top 50 wallets with win rates & bot flags, full positions, market-whale concentration and complete 365-day price history. Refreshed every ~2h. Pay only for the calls you make — no subscription, no API key to manage. 7 actions, zero setup.

- **URL**: https://apify.com/apimie/polymarket-whales-pro.md
- **Developed by:** [Apimie Apimie](https://apify.com/apimie) (community)
- **Categories:** Automation, Developer tools, Other
- **Stats:** 2 total users, 1 monthly users, 80.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $60.00 / 1,000 data-retrivals

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Tracker — Pro

> **The data the free feeds don't give you.** Top 50 whale wallets with **win rates, win/loss records and bot-likelihood flags**, **full** wallet position breakdowns, market-whale concentration, and **complete 365-day** price history — refreshed every **~2 hours**. The Pro tier key is **built in** (no API key to manage) and there's **no subscription** — you pay only per call.

### What this actor does

Queries a production database populated automatically from Polymarket's CLOB data API. It identifies "whale" wallets (traders with large positions), tracks their open bets, and exposes full market price history. This is the **Pro** edition: Pro-tier data access is baked in, so you just pick an action and run — there's no API key to paste.

**Use cases:**
- **Copy trading**: follow the biggest wallets before they move the price
- **Anomaly detection**: spot when whale concentration spikes before a resolution event
- **Market research**: download full price history for any market for backtesting
- **Portfolio analysis**: audit any wallet's complete Polymarket position book

---

### Why Pro — richer data, not just "more"

The free/anonymous level is a teaser: top 10 wallets, position *summaries*, and 7 days of history. **Pro unlocks the data that actually drives decisions:**

| | Free level | **Pro (this actor)** |
|---|---|---|
| Whale list | top 10, volume only | **top 50 + win rate, wins/losses, bot flag** |
| Whale positions | summary totals only | **full per-position breakdown** |
| `market_whales` (one-sided concentration) | 🔒 locked | ✅ included |
| Whale history | last 7 days | **up to 365 days** |
| Data freshness | every ~6h | **every ~2h** |

Need the same rich data refreshed every **~15 minutes** for near-real-time monitoring? Use the **Trader** edition.

---

### Pricing — pay per call, no subscription

This actor uses **pay-per-event**: you're charged **per data request** — one successful API call = one event. **No monthly subscription and no API key to buy.** The exact per-call price (and any discount for your Apify plan tier) is shown on this page; you only pay for the calls you actually run.

Prefer anonymous **Bitcoin** billing with a personal key instead of paying through Apify? Get one at **https://apimie.com/pricing**.

> **Note on limits.** This actor does not impose a practical daily cap. If an internal safety limit is ever reached, the run does **not** fail — it emits a single non-fatal record describing the situation (so you can detect it programmatically) and writes the same info to the run's `OUTPUT`.

---

### Actions

| Action | What it returns | Required input |
|---|---|---|
| `list_markets` *(default)* | Active markets sorted by volume, with prices, spread, category tags | — |
| `market_detail` | Full metadata + latest snapshot for one market | `marketId` |
| `market_history` | Full price time series for one market | `marketId` |
| `whale_list` | Top 50 wallets by volume **+ win rate, wins/losses, bot flag** | — |
| `whale_positions` | **Full** open net positions for a wallet | `walletAddress` |
| `whale_history` | Daily trade timeline for a wallet (up to 365 days) | `walletAddress` |
| `market_whales` | All whale positions concentrated in one market | `marketId` |

**Common inputs:** `limit` (max records), `category` / `subCategory` / `isActive` / `minVolume`
(filters for `list_markets`), `from` / `to` (date window for `market_history`), `days` (lookback
for `whale_history`, 1–365).

**Example output record (`whale_list`):**

```json
{
  "proxy_wallet": "0x204f72f35326db932158cba6adff0b9a1da95e14",
  "total_volume_usdc": 149850.00,
  "total_trades": 312,
  "buy_volume_usdc": 92400.00,
  "sell_volume_usdc": 57450.00,
  "win_rate": 0.64,
  "wins": 41,
  "losses": 23,
  "is_likely_bot": false,
  "last_movement_at": "2026-03-13T18:22:00.000Z"
}
````

**Example output record (`whale_positions` — full detail):**

```json
{
  "proxy_wallet": "0x204f72...",
  "condition_id": "0x9e145f...",
  "outcome_name": "Yes",
  "net_size_usdc": 3200.50,
  "avg_entry_price": 0.34,
  "last_trade_at": "2026-03-10T14:30:00.000Z",
  "question": "Will ETH close above $3000 on Apr 1?"
}
```

***

### Architecture

```
Polymarket CLOB API (data-api.polymarket.com)
         │ collected on a schedule (automated)
         ▼
    n8n Automation Workflows  →  PostgreSQL
         │
         ▼
    apimie middleware (auth, tiering & rate limits)
         │
         ▼ (this actor — Pro key baked in server-side)
    Apify Dataset
```

The backend endpoint URL and the Pro API key are stored as **server-side environment secrets**
and are **never exposed** in actor code, logs, or user-facing configuration. Authentication,
tiering, and per-call accounting are enforced by the apimie middleware.

***

### Tech stack

| Component | Technology |
|---|---|
| Workflow automation | n8n (self-hosted) |
| Database | PostgreSQL |
| Data collection | Polymarket CLOB API |
| AI categorization | Mistral / DeepSeek |
| Actor | Apify SDK v3 (Node.js 20, ESM) |

### License

Apache 2.0

# Actor input Schema

## `action` (type: `string`):

Which data to fetch. Start with list\_markets to discover market IDs and whale\_list to discover wallet addresses.

## `marketId` (type: `string`):

Numeric market ID (e.g. '553861'). Required for market\_detail, market\_history, and market\_whales. Run list\_markets first to find IDs.

## `walletAddress` (type: `string`):

Polymarket proxy wallet address (0x…). Required for whale\_positions and whale\_history. Run whale\_list first to find addresses.

## `isActive` (type: `boolean`):

For list\_markets: when enabled, only returns markets that are currently open and unresolved.

## `minVolume` (type: `number`):

For list\_markets: exclude markets with total traded volume below this threshold.

## `category` (type: `string`):

For list\_markets: filter results to one macro category.

## `subCategory` (type: `string`):

For list\_markets: partial-match filter on sub-category (e.g. 'bitcoin', 'NBA'). Case-insensitive.

## `from` (type: `string`):

For market\_history: return snapshots captured on or after this date.

## `to` (type: `string`):

For market\_history: return snapshots captured on or before this date.

## `days` (type: `integer`):

For whale\_history: number of days to look back from today.

## `limit` (type: `integer`):

Maximum number of records to return. Applies to list\_markets (default 100) and whale\_list (default 50).

## Actor input object example

```json
{
  "action": "list_markets",
  "marketId": "553861",
  "walletAddress": "0x204f72f35326db932158cba6adff0b9a1da95e14",
  "isActive": true,
  "minVolume": 50000,
  "subCategory": "bitcoin",
  "from": "2026-01-01",
  "to": "2026-03-01",
  "days": 30,
  "limit": 50
}
```

# Actor output Schema

## `dataset` (type: `string`):

Market data records pushed to the dataset.

## `summary` (type: `string`):

Run metadata (action, record count, timestamp) stored under the OUTPUT key.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("apimie/polymarket-whales-pro").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("apimie/polymarket-whales-pro").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{}' |
apify call apimie/polymarket-whales-pro --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=apimie/polymarket-whales-pro",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Polymarket Whale Tracker — Pro",
        "description": "Richer Polymarket whale data: top 50 wallets with win rates & bot flags, full positions, market-whale concentration and complete 365-day price history. Refreshed every ~2h. Pay only for the calls you make — no subscription, no API key to manage. 7 actions, zero setup.",
        "version": "0.0",
        "x-build-id": "e0C14uCtvzoRMlmC2"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/apimie~polymarket-whales-pro/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-apimie-polymarket-whales-pro",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/apimie~polymarket-whales-pro/runs": {
            "post": {
                "operationId": "runs-sync-apimie-polymarket-whales-pro",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/apimie~polymarket-whales-pro/run-sync": {
            "post": {
                "operationId": "run-sync-apimie-polymarket-whales-pro",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "action"
                ],
                "properties": {
                    "action": {
                        "title": "Action",
                        "enum": [
                            "list_markets",
                            "market_detail",
                            "market_history",
                            "whale_list",
                            "whale_positions",
                            "whale_history",
                            "market_whales"
                        ],
                        "type": "string",
                        "description": "Which data to fetch. Start with list_markets to discover market IDs and whale_list to discover wallet addresses.",
                        "default": "list_markets"
                    },
                    "marketId": {
                        "title": "Market ID",
                        "pattern": "^[0-9]+$",
                        "type": "string",
                        "description": "Numeric market ID (e.g. '553861'). Required for market_detail, market_history, and market_whales. Run list_markets first to find IDs."
                    },
                    "walletAddress": {
                        "title": "Wallet Address",
                        "pattern": "^0x[a-fA-F0-9]{40}$",
                        "type": "string",
                        "description": "Polymarket proxy wallet address (0x…). Required for whale_positions and whale_history. Run whale_list first to find addresses."
                    },
                    "isActive": {
                        "title": "Active Markets Only",
                        "type": "boolean",
                        "description": "For list_markets: when enabled, only returns markets that are currently open and unresolved.",
                        "default": true
                    },
                    "minVolume": {
                        "title": "Minimum Volume",
                        "minimum": 0,
                        "type": "number",
                        "description": "For list_markets: exclude markets with total traded volume below this threshold."
                    },
                    "category": {
                        "title": "Category",
                        "enum": [
                            "crypto",
                            "politics",
                            "sports",
                            "pop_culture",
                            "science_tech",
                            "economy",
                            "geopolitics",
                            "entertainment",
                            "other"
                        ],
                        "type": "string",
                        "description": "For list_markets: filter results to one macro category."
                    },
                    "subCategory": {
                        "title": "Sub-Category",
                        "type": "string",
                        "description": "For list_markets: partial-match filter on sub-category (e.g. 'bitcoin', 'NBA'). Case-insensitive."
                    },
                    "from": {
                        "title": "From Date",
                        "type": "string",
                        "description": "For market_history: return snapshots captured on or after this date."
                    },
                    "to": {
                        "title": "To Date",
                        "type": "string",
                        "description": "For market_history: return snapshots captured on or before this date."
                    },
                    "days": {
                        "title": "History Lookback",
                        "minimum": 1,
                        "maximum": 365,
                        "type": "integer",
                        "description": "For whale_history: number of days to look back from today.",
                        "default": 30
                    },
                    "limit": {
                        "title": "Result Limit",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Maximum number of records to return. Applies to list_markets (default 100) and whale_list (default 50)."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
