# Polymarket Top Traders: Verified P\&L, AI/MCP Ready (`mrlarryjohnson/polymarket-top-traders`) Actor

Polymarket trader leaderboard by P\&L or volume, per category and time window — enriched with live positions, verified open P\&L, cross-window consistency, and activity stats for copy-trading research.

- **URL**: https://apify.com/mrlarryjohnson/polymarket-top-traders.md
- **Developed by:** [Larry Johnson](https://apify.com/mrlarryjohnson) (community)
- **Categories:** AI, MCP servers, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 leaderboard rows

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 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 Top Traders — Leaderboard + Verified P&L Profiles

The Polymarket **trader leaderboard** (by P&L or volume, per category, per time window) — plus what raw leaderboards never tell you: **is this trader actually worth following?** Enriched mode adds each trader's **live open positions, verified open P&L, cross-window consistency, and recent activity stats**, straight from Polymarket's public APIs. Built for copy-trading research, smart-money tracking, and prediction-market analytics.

### Why this one
- **Leaderboards lie by omission.** A trader can top the DAY board with one lucky longshot. We check every top trader against **all four windows (DAY / WEEK / MONTH / ALL)** and report how many they rank in — one-hit wonders are obvious at a glance.
- **Verified open P&L, not just the headline number.** For each enriched trader you get their current positions, portfolio value, and open P&L computed from the live positions API — every number traceable, nothing modeled.
- **Copy-trading signals included:** `tradesLast7d`, `avgTradeUsd7d`, `activeLast7d`, `lastActivityAt` — know whether the trader is still active before you follow them.
- **Partial-failure resilient.** One bad wallet never kills your run.
- **No API keys, no wallet, no login** — public Polymarket endpoints only.

### Modes
| Mode | What you get | Typical use |
|---|---|---|
| `leaderboard` | Raw ranked rows: rank, P&L, volume, username, wallet | Cheap bulk ranking data, dashboards |
| `enriched` | Top N traders + consistency across windows + live positions/P&L + activity stats | "Who is worth copying?" research |
| `profiles` | The same rich profile for explicit wallet addresses | Track specific traders over time |

### Categories & windows
All 10 Polymarket categories (`OVERALL`, `POLITICS`, `SPORTS`, `CRYPTO`, `CULTURE`, `MENTIONS`, `WEATHER`, `ECONOMICS`, `TECH`, `FINANCE`) × 4 time windows (`DAY`, `WEEK`, `MONTH`, `ALL`), ranked by `PNL` or `VOL`.

### Sample output (enriched)
```json
{
  "rank": 2,
  "wallet": "0x3496...",
  "userName": "skk1ch",
  "pnlUsd": 441523.58,
  "volumeUsd": 202503.98,
  "category": "OVERALL",
  "window": "WEEK",
  "windowsRanked": {"DAY": 5, "WEEK": 2, "MONTH": 11, "ALL": 40},
  "consistency": "4/4 windows in top 50",
  "profile": {
    "openPositions": 12,
    "portfolioValueUsd": 380211.40,
    "openPnlUsd": 25103.22,
    "topPositions": [{"title": "...", "outcome": "Yes", "cashPnl": 8121.50}],
    "tradesLast7d": 34,
    "avgTradeUsd7d": 11842.10,
    "activeLast7d": true
  },
  "profileUrl": "https://polymarket.com/profile/0x3496..."
}
````

### Quick start

1. Run with defaults — top 25 `OVERALL` weekly P\&L leaders.
2. Switch to `enriched` mode to vet the top 10 before following anyone.
3. Schedule it daily and diff the results to catch new names entering the boards.
4. Pipe into the **Polymarket Whale Tracker** actor (same author) to watch the wallets you picked in real time.

### Pricing

Pay-per-event: cheap `leaderboard-row` events for raw rows; `trader-profile` events only for the rich enriched/profile records you actually receive.

### Use with AI agents (Claude, Cursor, n8n — MCP)

This Actor works out of the box as an **MCP tool**. Point your agent at Apify's hosted MCP server and it can call the Actor directly:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com?tools=mrlarryjohnson/polymarket-top-traders"
    }
  }
}
```

OAuth sign-in happens on first connect (or use an `Authorization: Bearer <APIFY_TOKEN>` header). Your agent can then fetch trader leaderboards and verified P\&L profiles on demand and reason over the results — same pay-per-event pricing, no extra setup.

### FAQ

- **Do I need API keys or a crypto wallet?** No — public Polymarket endpoints only.
- **Where do the numbers come from?** Polymarket's own leaderboard, positions, and activity APIs — every record links to the trader's public profile page.
- **Can I export CSV / Excel / JSON?** Yes — standard Apify dataset exports.
- **Is this financial advice?** No. Informational data only.

### Changelog

- **0.1** — initial release: leaderboard / enriched / profiles modes, cross-window consistency, live open P\&L verification.

# Actor input Schema

## `mode` (type: `string`):

leaderboard = raw ranked rows (cheap). enriched = top traders with live positions, open P\&L, cross-window consistency. profiles = the same rich profile for explicit wallet addresses.

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

Market category to rank traders in.

## `timePeriod` (type: `string`):

Ranking window for the leaderboard.

## `orderBy` (type: `string`):

Rank traders by realized profit (PNL) or by trading volume (VOL).

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

How many leaderboard rows to return (Polymarket caps at 50 per page; use offset to page).

## `offset` (type: `integer`):

Pagination offset into the leaderboard (0-1000).

## `enrichTop` (type: `integer`):

How many of the top leaderboard traders get the full profile treatment. Each enriched trader is one billable trader-profile event.

## `wallets` (type: `array`):

Polymarket proxy wallet addresses (0x...) to profile. Max 50.

## `maxPositions` (type: `integer`):

How many of the largest open positions to include in each trader profile.

## `activityLimit` (type: `integer`):

How many recent activity rows to sample when computing trade stats (tradesLast7d, avgTradeUsd7d).

## Actor input object example

```json
{
  "mode": "leaderboard",
  "category": "OVERALL",
  "timePeriod": "WEEK",
  "orderBy": "PNL",
  "limit": 25,
  "offset": 0,
  "enrichTop": 10,
  "wallets": [],
  "maxPositions": 10,
  "activityLimit": 50
}
```

# 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("mrlarryjohnson/polymarket-top-traders").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("mrlarryjohnson/polymarket-top-traders").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 mrlarryjohnson/polymarket-top-traders --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Polymarket Top Traders: Verified P&L, AI/MCP Ready",
        "description": "Polymarket trader leaderboard by P&L or volume, per category and time window — enriched with live positions, verified open P&L, cross-window consistency, and activity stats for copy-trading research.",
        "version": "0.1",
        "x-build-id": "CkdLqjGTIkN0sF4J9"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/mrlarryjohnson~polymarket-top-traders/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-mrlarryjohnson-polymarket-top-traders",
                "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/mrlarryjohnson~polymarket-top-traders/runs": {
            "post": {
                "operationId": "runs-sync-mrlarryjohnson-polymarket-top-traders",
                "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/mrlarryjohnson~polymarket-top-traders/run-sync": {
            "post": {
                "operationId": "run-sync-mrlarryjohnson-polymarket-top-traders",
                "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": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Mode",
                        "enum": [
                            "leaderboard",
                            "enriched",
                            "profiles"
                        ],
                        "type": "string",
                        "description": "leaderboard = raw ranked rows (cheap). enriched = top traders with live positions, open P&L, cross-window consistency. profiles = the same rich profile for explicit wallet addresses.",
                        "default": "leaderboard"
                    },
                    "category": {
                        "title": "Category",
                        "enum": [
                            "OVERALL",
                            "POLITICS",
                            "SPORTS",
                            "CRYPTO",
                            "CULTURE",
                            "MENTIONS",
                            "WEATHER",
                            "ECONOMICS",
                            "TECH",
                            "FINANCE"
                        ],
                        "type": "string",
                        "description": "Market category to rank traders in.",
                        "default": "OVERALL"
                    },
                    "timePeriod": {
                        "title": "Time window",
                        "enum": [
                            "DAY",
                            "WEEK",
                            "MONTH",
                            "ALL"
                        ],
                        "type": "string",
                        "description": "Ranking window for the leaderboard.",
                        "default": "WEEK"
                    },
                    "orderBy": {
                        "title": "Rank by",
                        "enum": [
                            "PNL",
                            "VOL"
                        ],
                        "type": "string",
                        "description": "Rank traders by realized profit (PNL) or by trading volume (VOL).",
                        "default": "PNL"
                    },
                    "limit": {
                        "title": "Rows (leaderboard mode)",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "How many leaderboard rows to return (Polymarket caps at 50 per page; use offset to page).",
                        "default": 25
                    },
                    "offset": {
                        "title": "Offset (leaderboard mode)",
                        "minimum": 0,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Pagination offset into the leaderboard (0-1000).",
                        "default": 0
                    },
                    "enrichTop": {
                        "title": "Traders to enrich (enriched mode)",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "How many of the top leaderboard traders get the full profile treatment. Each enriched trader is one billable trader-profile event.",
                        "default": 10
                    },
                    "wallets": {
                        "title": "Wallet addresses (profiles mode)",
                        "type": "array",
                        "description": "Polymarket proxy wallet addresses (0x...) to profile. Max 50.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxPositions": {
                        "title": "Top positions per profile",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "How many of the largest open positions to include in each trader profile.",
                        "default": 10
                    },
                    "activityLimit": {
                        "title": "Activity rows sampled per profile",
                        "minimum": 1,
                        "maximum": 200,
                        "type": "integer",
                        "description": "How many recent activity rows to sample when computing trade stats (tradesLast7d, avgTradeUsd7d).",
                        "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
