# Hyperliquid Leaderboard & Top Traders Scraper (`copytop/hyperliquid-leaderboard-scraper`) Actor

Hyperliquid leaderboard with PnL, ROI and volume per day, week, month and all time, plus open positions and fills for any address. Reads Hyperliquid's public endpoints. Read-only, no login, no key.

- **URL**: https://apify.com/copytop/hyperliquid-leaderboard-scraper.md
- **Developed by:** [copy.top](https://apify.com/copytop) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

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

## Hyperliquid Leaderboard & Top Traders Scraper

Export the Hyperliquid leaderboard with PnL, ROI and volume for the day, the week, the month and all time, then pull the open positions and the latest fills of any trader. Clean JSON, CSV or Excel. No login, no API key, no browser, no proxy.

This actor reads **Hyperliquid's own public endpoints** directly: the leaderboard file and the public info endpoint. It is read-only: nothing here places an order, moves funds or needs a wallet. It is published by copy.top, which tracks what top traders buy and sell on fomo, pumpfun and Hyperliquid, and lets people copy them. Every row carries a `copytop_url`.

If you were looking for a Hyperliquid leaderboard scraper, a Hyperliquid leaderboard API with sorting and filters, or a way to watch what Hyperliquid whales hold, this is the short path: pick a mode, press Start, download the dataset.

### What it does

| Mode | What you get | Rows per run |
|---|---|---|
| `leaderboard` | Top traders ranked by PnL, ROI or volume over the day, week, month or all time, with an optional minimum account value | up to 1000 |
| `positions` | Open perp positions of each address: coin, side, size, entry price, value, unrealized PnL, leverage, liquidation price | one row per open position, up to 50 addresses |
| `fills` | Latest fills of each address: coin, side, direction, price, size, closed PnL, time, transaction hash | up to 2000 per address, up to 50 addresses |

Why use it instead of calling the file yourself: the leaderboard file is one large JSON with no filter, no sort and no pagination. On 2026-11-16 it weighed about 39 MB and held 47,867 accounts. The actor downloads it with a long timeout and retries, converts every figure to a number, sorts on the period you choose and returns only the rows you asked for.

### Who it is for

- **Perp traders** who want a daily or hourly list of the top Hyperliquid accounts and what they hold.
- **Copy traders and researchers** who shortlist addresses by monthly PnL, then check their positions and fills.
- **Bot and dashboard builders** who need a filtered Hyperliquid leaderboard feed without hosting a job that parses a 39 MB file.
- **Analysts** who want history: schedule the actor and keep every dataset to see who climbs and who drops.
- **AI agent builders** who want a simple tool that returns structured Hyperliquid trader data.

### Input

| Field | Type | Used in mode | Default | Description |
|---|---|---|---|---|
| `mode` | string | all | `leaderboard` | `leaderboard`, `positions` or `fills` |
| `window` | string | leaderboard | `week` | `day`, `week`, `month` or `allTime` |
| `sort` | string | leaderboard | `pnl` | `pnl`, `roi` or `volume` |
| `minAccountValue` | integer | leaderboard | `0` | Skip accounts under this value in USD. Recommended with `sort` `roi`, for example 10000 |
| `limit` | integer | leaderboard, fills | `100` | Leaderboard: 1 to 1000 traders. Fills: 1 to 2000 fills per address |
| `addresses` | array of strings | positions, fills | none | Hyperliquid addresses (0x and 40 hex characters). Up to 50 |

Example input for the top 200 accounts of the month:

```json
{
    "mode": "leaderboard",
    "window": "month",
    "sort": "pnl",
    "minAccountValue": 10000,
    "limit": 200
}
```

Example input for open positions:

```json
{
    "mode": "positions",
    "addresses": ["0x5b5d51203a0f9079f8aeb098a6523a13f298c060"]
}
```

### Output

Every row has a `type`, a `copytop_url` and a `scraped_at` timestamp. Figures that Hyperliquid sends as text are converted to numbers. Download the dataset as JSON, CSV, Excel, XML or HTML from the run page or the Apify API.

#### Leaderboard row (`type: "leaderboard"`)

| Field | Meaning |
|---|---|
| `rank` | Position after filtering and sorting, 1 is first |
| `window`, `sort` | The query that produced the row |
| `address` | The trader's address |
| `display_name` | Name the trader set on Hyperliquid, or null |
| `account_value` | Account value in USD as published in the leaderboard file |
| `pnl`, `roi`, `volume` | Figures for the chosen window. `roi` is a ratio (0.72 means 72 %) |
| `day_pnl`, `day_roi`, `day_volume` | Figures for the day |
| `week_pnl`, `week_roi`, `week_volume` | Figures for the week |
| `month_pnl`, `month_roi`, `month_volume` | Figures for the month |
| `allTime_pnl`, `allTime_roi`, `allTime_volume` | Figures since the account started |
| `copytop_url` | https://copy.top/hl |
| `scraped_at` | When the actor read the data (ISO 8601, UTC) |

Real sample row, captured on 2026-11-16 (first of the month by PnL):

```json
{
    "type": "leaderboard",
    "rank": 1,
    "window": "month",
    "sort": "pnl",
    "address": "0x5b5d51203a0f9079f8aeb098a6523a13f298c060",
    "display_name": null,
    "account_value": 13436423.71451,
    "pnl": 140296206.684844,
    "roi": 0.7188687545,
    "volume": 877273164.81,
    "day_pnl": -110015.697172,
    "day_roi": -0.002193132,
    "day_volume": 234045778.93,
    "week_pnl": 61424004.764366,
    "week_roi": 0.5321906129,
    "week_volume": 529169658.41,
    "month_pnl": 140296206.684844,
    "month_roi": 0.7188687545,
    "month_volume": 877273164.81,
    "allTime_pnl": 311293757.043912,
    "allTime_roi": 0.96275011,
    "allTime_volume": 6636643930.85,
    "copytop_url": "https://copy.top/hl",
    "scraped_at": "2026-11-16T16:50:57.966Z"
}
```

#### Position row (`type: "position"`)

| Field | Meaning |
|---|---|
| `address` | The trader's address |
| `coin` | Market, for example BTC |
| `side` | `long` or `short` |
| `size` | Signed size in coins (negative for a short) |
| `entry_price`, `position_value`, `unrealized_pnl` | In USD |
| `return_on_equity` | Ratio |
| `leverage`, `leverage_type`, `max_leverage` | Leverage in use, `cross` or `isolated`, and the maximum for this market |
| `liquidation_price`, `margin_used` | In USD. `liquidation_price` can be null |
| `funding_since_open` | Cumulative funding since the position was opened, as Hyperliquid reports it |
| `account_value`, `withdrawable` | Perp account value and withdrawable amount in USD |

Real sample row, captured on 2026-11-16:

```json
{
    "type": "position",
    "address": "0x5b5d51203a0f9079f8aeb098a6523a13f298c060",
    "coin": "BTC",
    "side": "short",
    "size": -3.28011,
    "entry_price": 75089.2,
    "position_value": 212045.99106,
    "unrealized_pnl": 34255.030954,
    "return_on_equity": 0.6953895415,
    "leverage": 5,
    "leverage_type": "cross",
    "max_leverage": 40,
    "liquidation_price": 1215174.5134410013,
    "margin_used": 42409.198212,
    "funding_since_open": -4064702.522708,
    "account_value": 2829860.150219,
    "withdrawable": 0,
    "copytop_url": "https://copy.top/hl",
    "scraped_at": "2026-11-16T16:51:23.444Z"
}
```

An address with no open position produces no row. The run log says so.

#### Fill row (`type: "fill"`)

`address`, `coin`, `side` (`buy` or `sell`), `direction` (for example `Open Long`, `Close Short`), `price`, `size`, `notional_usd` (price times size), `closed_pnl`, `fee` and `fee_token` (the exchange fee recorded on the fill), `start_position`, `crossed`, `time` (ISO 8601), `time_ms`, `hash`, `order_id`, `trade_id`, `copytop_url`, `scraped_at`. Fills are sorted newest first. A spot fill shows its market as Hyperliquid sends it, for example `@210`.

```json
{
    "type": "fill",
    "address": "0x5b5d51203a0f9079f8aeb098a6523a13f298c060",
    "coin": "@210",
    "side": "sell",
    "direction": "Sell",
    "price": 0.043776,
    "size": 20340.1,
    "notional_usd": 890.41,
    "closed_pnl": -971.38799301,
    "fee": 0.21815001,
    "fee_token": "USDC",
    "start_position": 20340.611632,
    "crossed": true,
    "time": "2026-11-16T16:50:55.710Z",
    "time_ms": 1794847855710,
    "hash": "0x20de282dc8ee9e1b22570448eec6d9020199001363e1bcedc4a6d38087e27805",
    "order_id": 607262629250,
    "trade_id": 61032909041200,
    "copytop_url": "https://copy.top/hl",
    "scraped_at": "2026-11-16T16:51:23.735Z"
}
```

### How to run it

#### From the Apify Console

Open the actor, pick a mode, press **Start**. When the run ends, open the **Output** tab and export the dataset. The leaderboard mode usually takes around 30 seconds because of the size of the file.

#### From the Apify API

Run and get the rows in one call (replace the token with yours, from Apify Console, Settings, API and Integrations):

```bash
curl -X POST "https://api.apify.com/v2/acts/copytop~hyperliquid-leaderboard-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "content-type: application/json" \
  -d '{"mode":"leaderboard","window":"week","sort":"pnl","limit":100}'
```

With the JavaScript client:

```js
import { ApifyClient } from "apify-client";

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const board = await client.actor("copytop/hyperliquid-leaderboard-scraper").call({ mode: "leaderboard", window: "month", sort: "pnl", limit: 20 });
const { items: top } = await client.dataset(board.defaultDatasetId).listItems();

// then read what the top 20 hold
const run = await client.actor("copytop/hyperliquid-leaderboard-scraper").call({ mode: "positions", addresses: top.map((t) => t.address) });
const { items: positions } = await client.dataset(run.defaultDatasetId).listItems();
console.log(positions);
```

With the Python client:

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("copytop/hyperliquid-leaderboard-scraper").call(run_input={"mode": "leaderboard", "window": "day", "sort": "volume", "limit": 50})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["rank"], item["address"], item["pnl"], item["volume"])
```

#### On a schedule

In Apify Console open **Schedules**, create a schedule, add this actor with your input and pick a cron expression. Useful setups:

- `0 0 * * *` with mode `leaderboard`, window `day`: a daily snapshot, to build your own history of the ranking.
- `*/10 * * * *` with mode `positions` and your shortlist of addresses: see when a trader opens, adds or closes.
- `*/5 * * * *` with mode `fills` and a small `limit`: a near real time feed of what your shortlist trades.

You can also connect the dataset to Google Sheets, Slack, Make, Zapier or a webhook from the **Integrations** tab of the actor.

### Limits

- Leaderboard: up to 1000 rows per run. The file is large and sometimes slow, so the actor waits up to 280 seconds per attempt and retries up to 4 times.
- Fills: the public endpoint returns the 2000 latest fills of an address at most.
- Positions: perp positions only.
- `account_value` in the leaderboard comes from the leaderboard file. `account_value` in position rows comes from the perp account state. The two can differ.
- Up to 50 addresses per run, called one after the other with a short pause.

### FAQ

#### Is there a Hyperliquid leaderboard API?

Hyperliquid serves its leaderboard as one public file, with every account and no filter, sort or pagination. This actor turns it into an API you can query: choose the period, the sort, a minimum account value and a row count, and get clean rows back through the Apify API.

#### Is this Hyperliquid scraper free?

The actor itself is free. You only pay Apify for the platform usage of your runs. It needs no Hyperliquid API key and no account.

#### How do I find the top Hyperliquid traders and see their positions?

Run the actor in `leaderboard` mode sorted by `pnl` over the month or all time, with a minimum account value. Copy the `address` of the traders you care about, then run the `positions` mode with those addresses to see what they hold, and the `fills` mode to see what they just traded.

#### Can I export the Hyperliquid leaderboard to CSV, Excel or Google Sheets?

Yes. Every run stores its rows in an Apify dataset that you can download as CSV, Excel, JSON, XML or HTML. To fill a Google Sheet automatically, add the Google Sheets integration to the actor and put the actor on a schedule.

#### Does it need a wallet, a private key or a Hyperliquid account?

No. The actor only reads public data. You give it public addresses, never a key. It cannot place an order.

### Need more?

copy.top follows top Hyperliquid traders and their calls, with a public API that covers fomo, pumpfun and Hyperliquid through one endpoint.

- Hyperliquid on copy.top: https://copy.top/hl
- Developer docs: https://copy.top/developers
- Hyperliquid API guide: https://copy.top/hyperliquid-api

### Good to know

- Read-only: nothing here places an order.
- Data source: Hyperliquid's public endpoints (`stats-data.hyperliquid.xyz` and `api.hyperliquid.xyz/info`), called directly.
- copy.top is independent. It is not affiliated with Hyperliquid.
- Published by copy.top. Contact: ana@copy.top. License: MIT.
- figures are data, not advice. trading memecoins is risky and past performance does not predict results. Leveraged perps can lose more, faster.

# Actor input Schema

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

What to fetch. leaderboard: top traders ranked by PnL, ROI or volume. positions: open perp positions of each address. fills: latest fills of each address.

## `window` (type: `string`):

Period used for the ranking. Every row also carries the figures of the four periods.

## `sort` (type: `string`):

pnl: profit and loss in USD. roi: return on the account, as a ratio. volume: traded volume in USD.

## `minAccountValue` (type: `integer`):

Skip accounts smaller than this. Useful with sort roi, where very small accounts otherwise fill the top. 0 keeps every account.

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

Leaderboard: number of traders, 1 to 1000. Fills: number of fills per address, 1 to 2000 (the endpoint returns the 2000 latest fills at most). Not used for positions.

## `addresses` (type: `array`):

Hyperliquid addresses: 0x followed by 40 hex characters. Up to 50 per run. Take them from the leaderboard rows.

## Actor input object example

```json
{
  "mode": "leaderboard",
  "window": "week",
  "sort": "pnl",
  "minAccountValue": 0,
  "limit": 100,
  "addresses": [
    "0x5b5d51203a0f9079f8aeb098a6523a13f298c060"
  ]
}
```

# Actor output Schema

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

Dataset items: one row per trader, open position or fill, depending on the mode.

# 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 = {
    "addresses": [
        "0x5b5d51203a0f9079f8aeb098a6523a13f298c060"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("copytop/hyperliquid-leaderboard-scraper").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 = { "addresses": ["0x5b5d51203a0f9079f8aeb098a6523a13f298c060"] }

# Run the Actor and wait for it to finish
run = client.actor("copytop/hyperliquid-leaderboard-scraper").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 '{
  "addresses": [
    "0x5b5d51203a0f9079f8aeb098a6523a13f298c060"
  ]
}' |
apify call copytop/hyperliquid-leaderboard-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,copytop/hyperliquid-leaderboard-scraper"
        }
    }
}
```

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/VLXz3FDVmyEdtw7ag/builds/LUhUcRwMD9UKORuaz/openapi.json
