# Polymarket Whale & Copy-Trading Analyzer + Arb Scanner (`stonebridge199/polymarket-whale-analyzer`) Actor

Analyze any Polymarket trader's true resolved win rate, ROI, profit factor, and Copy-Trading Safety Score (0-100), scan leaderboard whales in bulk, or detect live Neg-Risk multi-outcome arbitrage.

- **URL**: https://apify.com/stonebridge199/polymarket-whale-analyzer.md
- **Developed by:** [Salman Al Yamin](https://apify.com/stonebridge199) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 results

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Polymarket Whale, Win-Rate & Copy-Trading Analyzer + Arb Scanner

Extract deep trader intelligence, true resolved win rates, **Copy-Trading Safety Scores (0–100)**, and live **Neg-Risk multi-outcome arbitrage** from Polymarket (`polymarket.com`).

Built for **copy-trading bots**, **n8n / Make.com automations**, **AI trading agents**, and **prediction-market researchers**.

***

### Why Use This Actor Instead of Raw Polymarket APIs?

1. **Unbiased Chronological Win Rates:** Polymarket's default closed-positions endpoint sorts by `REALIZED_PNL DESC` (showing only wins on the first pages). This Actor forces chronological pagination (`TIMESTAMP DESC`, 500 positions/page) across both `CLOSED` and `REDEEMABLE` / `REDEEMABLE_LOST` states for accurate win rates.
2. **Accurate Closed Cost-Basis & ROI:** Polymarket zeroes out `entry_cost_usdc` on closed positions. This Actor reconstructs deployed capital from `avg_price * total_size` so ROI% and Profit Factor are accurate.
3. **Copy-Trading Safety Score (0–100):** Automatically grades every wallet across 6 copy-trading risk checks:
   - **Sample Size (15 pts):** 50–100+ resolved trades.
   - **Outlier Independence (20 pts):** Ensures profits don't come from a single lucky bet.
   - **Profit Factor & ROI (20 pts):** Filters out 98¢ bond-grinders who lose money overall.
   - **Slippage & Entry Odds Room (15 pts):** Prefers directional entries (`15¢–80¢`) with `≥ 5%` ROI so copy-traders survive spread/slippage.
   - **Open-Loss Bag-Holding Check (15 pts):** Catches traders who hide losses in unclosed `OPEN` positions.
   - **Unhedged Directional Conviction (15 pts):** Flags market-makers who buy both `Yes` and `No` on the same `conditionId`.

***

### 4 Operation Modes

1. **`leaderboard_whales`** — Automatically pulls the top `N` traders from Polymarket's Leaderboard (`day`, `week`, `month`, `all` across `overall`, `politics`, `sports`, `crypto`, `finance`, `tech`) and scores every wallet.
2. **`analyze_profiles`** — Deep-scan specific `@usernames`, `0x...` proxy wallets, or `https://polymarket.com/@...` URLs.
3. **`neg_risk_arbitrage`** — Scans active multi-outcome Neg-Risk events for live orderbook sum arbitrage (`Sum(Yes Ask) < $1.00` or `Sum(Yes Bid) > $1.00`).
4. **`active_markets`** — Exports active Polymarket markets with live `bestBid`, `bestAsk`, spread in cents, 24h volume, and liquidity.

***

### Sample Output (`leaderboard_whales` / `analyze_profiles`)

```json
{
  "recordType": "trader_profile",
  "username": "ferrariChampions2026",
  "proxyWallet": "0xfe787d2da716d60e8acff57fb87eb13cd4d10319",
  "profileUrl": "https://polymarket.com/profile/0xfe787d2da716d60e8acff57fb87eb13cd4d10319",
  "verified": false,
  "takerTierName": "Diamond",
  "copyabilityScore": 85,
  "copyabilityVerdict": "Strong Copy Candidate",
  "winRatePercent": 61.4,
  "resolvedPnlUsd": 412850.25,
  "unrealizedPnlUsd": 260.61,
  "roiPercent": 34.8,
  "profitFactor": 2.45,
  "totalPositions": 1250,
  "resolvedCount": 1245,
  "wins": 764,
  "losses": 481,
  "openCount": 5
}
```

# Actor input Schema

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

Choose what data to extract from Polymarket.

## `profiles` (type: `array`):

Enter Polymarket @usernames, 0x... proxy wallet addresses, or https://polymarket.com/@... URLs.

## `leaderboardTimePeriod` (type: `string`):

Time window when scanning the Polymarket leaderboard.

## `leaderboardCategory` (type: `string`):

Market category filter for the leaderboard.

## `leaderboardSortBy` (type: `string`):

Rank leaderboard traders by total PnL or trading volume.

## `leaderboardLimit` (type: `integer`):

How many top leaderboard profiles to deep-scan (1 to 100).

## `maxPositionsPerStatus` (type: `integer`):

How many historical positions to pull per status (500 to 15,000). 9,000+ is recommended for high-volume whales.

## `minCopyabilityScore` (type: `integer`):

Only output traders whose Copy-Trading Safety Score is at least this value (set to 75 for Strong Copy Candidates only).

## `includePositions` (type: `boolean`):

If enabled, attaches the normalized resolved & open positions list to each trader record.

## `eventsLimit` (type: `integer`):

Number of top active Polymarket events to scan (10 to 300).

## `hideAugmentedNegRisk` (type: `boolean`):

Excludes open-ended Augmented Neg-Risk events that contain unnamed placeholder outcomes.

## Actor input object example

```json
{
  "mode": "leaderboard_whales",
  "profiles": [
    "ferrariChampions2026"
  ],
  "leaderboardTimePeriod": "month",
  "leaderboardCategory": "overall",
  "leaderboardSortBy": "PNL",
  "leaderboardLimit": 15,
  "maxPositionsPerStatus": 5000,
  "minCopyabilityScore": 0,
  "includePositions": false,
  "eventsLimit": 100,
  "hideAugmentedNegRisk": true
}
```

# Actor output Schema

## `results` (type: `string`):

Direct link to all JSON items in the default dataset.

## `overviewTable` (type: `string`):

Downloadable CSV of the Overview table.

# 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("stonebridge199/polymarket-whale-analyzer").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("stonebridge199/polymarket-whale-analyzer").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 '{}' |
apify call stonebridge199/polymarket-whale-analyzer --silent --output-dataset

```

## MCP server setup

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

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/kpYf3lbhlpgDlSbjt/builds/mhUDfxADfwfI5SgoG/openapi.json
