Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Screen the Hyperliquid leaderboard before you copy a trader, in Python

The Hyperliquid leaderboard is sorted by pnl, and pnl is the worst single number to pick a trader by. A wallet can sit at the top after one lucky month with a 60% drawdown on the way, or with every dollar on one coin, or with trades that last four minutes and that nobody can follow by hand. This post reads the top of the 30 day Hyperliquid leaderboard from a free API in Python, then drops the…

The Hyperliquid leaderboard is not sorted by a single metric, like profit, which is a poor indicator for assessing traders. A trader can appear on top for various reasons, such as a lucky month with high drawdown, all investments in one coin, or trades that are too short to follow manually. This Python post reads the top 30-day leaderboard from a public API, then eliminates traders who fail four straightforward tests: drawdown, win rate, holding duration, and concentration.

After this filtering, a concise list remains, worth examining individually. The author is the founder of copy.top, an independent platform not linked to Hyperliquid. To get started, create a virtual environment and install copytop with no API key required. Tested with Python 3.14.5 and copytop version 0.1.1, all operations here are read-only, placing no orders.

Each leaderboard entry includes more than just profit; it contains additional data like return on investment (ROI), win rate, maximum 30-day drawdown percentage, median trade duration, average trades per day, and the trader's top coin allocations. The provided code snippet demonstrates how to interact with this data, retrieving the top 20 traders over the past 30 days sorted by profit.

It defines a series of checks to filter out traders who do not meet minimum criteria in each category. If a trader fails any of these checks, the reasons are recorded. The main function reads the leaderboard, applies the filters, and outputs a summary of how many traders were initially read and how many passed all checks. It also reports why each trader was removed from the list.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

More from Thursday 26 November →