Hyperliquid historical data and leaderboard API: candles, funding, top traders (Python)
Updated Nov 17, 2026 · 6 min read
Hyperliquid’s free info API keeps hourly funding back to 2023, the last 5,000 candles per interval and a wallet’s last 10,000 fills. The leaderboard is an undocumented public JSON file.
What historical data can you get from Hyperliquid, and is there a leaderboard API? The public info API (POST https://api.hyperliquid.xyz/info, no key) returns hourly funding back to 2023, the last 5,000 candles per interval and a wallet’s 10,000 most recent fills. There is no documented leaderboard request: the leaderboard page loads a public JSON file, https://stats-data.hyperliquid.xyz/Mainnet/leaderboard, with each wallet’s PnL, ROI and volume over a day, a week, 30 days and all time.
Key takeaways
- Funding is hourly back to 2023, 500 rows per call: page by time.
- Candles stop at the latest 5,000 per interval, about 208 days of hourly bars.
- The leaderboard file is about 40 MB, keyless and undocumented, so its shape can change.
- The limit is 1,200 weight a minute per IP.
What history the public info API gives you
All are POSTs to the info endpoint, for example {"type": "fundingHistory", …}. Time-range requests return at most 500 elements; send the last timestamp as the next startTime.
| Data | Request type | How far back | Rate-limit weight |
|---|---|---|---|
| Candles (OHLCV), 1m to 1M | candleSnapshot | Most recent 5,000 per interval | 20 + 1 per 60 candles |
| Funding rates | fundingHistory | Hourly; BTC from May 12, 2023 | 20 + 1 per 20 rows |
| A wallet’s fills | userFills / userFillsByTime | 2,000 per response; only the 10,000 most recent | 20 + 1 per 20 fills |
| A wallet’s past orders | historicalOrders | 2,000 most recent | 20 + 1 per 20 orders |
| A wallet’s funding payments | userFunding | Time range, paged | 20 + 1 per 20 rows |
| Account value and PnL | portfolio | Day, week, month, all time, plus perp-only versions | 20 |
In our test on Nov 17, 2026, one hourly BTC request returned 5,001 candles; the last was still in progress, so drop it before computing anything.
What the API does not keep
- Open-interest history. metaAndAssetCtxs returns current open interest only.
- Market-wide liquidations. There is no liquidation feed; fills that were part of a liquidation carry a liquidation field.
- Order-book history, and candles or fills beyond the caps. Record them from the websocket going forward.
Hyperliquid’s docs also list S3 archives (requester pays): hyperliquid-archive holds L2 book snapshots and asset contexts, uploaded about monthly with no guarantee and no candles; hl-mainnet-node-data holds fills and non-trade events such as funding.
The leaderboard file
We searched Hyperliquid’s full docs (llms-full.txt) on Nov 17, 2026 and found no leaderboard request. The JavaScript behind app.hyperliquid.xyz/leaderboard fetches https://stats-data.hyperliquid.xyz/{chain}/leaderboard, with Mainnet as the chain: a static file on Amazon S3, outside the info API. Each row has ethAddress, accountValue, displayName and windowPerformances (pnl, roi and vlm for day, week, month and allTime).
Leaderboard PnL is not always perp PnL. At 19:16 UTC on Nov 17, 2026, wallet 0x659d…9d63 showed $52.2M of 30-day PnL, $0 in the portfolio request’s perp-only window, no perp positions and only spot balances. Check perpMonth before treating a wallet as a perp trader.
Two Python scripts (no key, standard library only)
Tested
1. Paginated funding history
Pulls 90 days of hourly BTC funding, 500 rows at a time, and backs off on a 429 (over the weight limit).
import json, time, urllib.error, urllib.request
URL = "https://api.hyperliquid.xyz/info"
def info(body, tries=5):
req = urllib.request.Request(URL, data=json.dumps(body).encode(),
headers={"Content-Type": "application/json"})
for i in range(tries):
try:
with urllib.request.urlopen(req, timeout=30) as r:
return json.load(r)
except urllib.error.HTTPError as e:
if e.code != 429 or i == tries - 1:
raise
time.sleep(2 ** i) # 429 = over the weight limit, back off
def funding_history(coin, start_ms, end_ms):
rows = []
while start_ms < end_ms:
page = info({"type": "fundingHistory", "coin": coin,
"startTime": start_ms, "endTime": end_ms})
if not page:
break
rows += page
start_ms = page[-1]["time"] + 1 # next page starts after the last row
time.sleep(0.5) # stay well under the weight limit
return rows
end = int(time.time() * 1000)
rows = funding_history("BTC", end - 90 * 86_400_000, end)
rates = [float(r["fundingRate"]) for r in rows]
fmt = lambda ms: time.strftime("%Y-%m-%d %H:%M UTC", time.gmtime(ms / 1000))
print(len(rows), "hourly rows from", fmt(rows[0]["time"]), "to", fmt(rows[-1]["time"]))
print(f"average: {sum(rates) / len(rates) * 24 * 365:.1%} a year")Output at 17:51 UTC: 2,160 hourly rows from Aug 19 to Nov 17, averaging 9.3% a year (hourly average times 8,760, not compounded). See what funding rates tell traders.
2. Top 30-day PnL, without market-maker turnover
Drops wallets under $100,000 or with 30-day volume above 100 times account value, ranks the rest by 30-day PnL, then fetches each wallet’s perp-only PnL. The 100x cut-off is a judgment call.
import json, time, urllib.request
LEADERBOARD = "https://stats-data.hyperliquid.xyz/Mainnet/leaderboard" # about 40 MB
with urllib.request.urlopen(LEADERBOARD, timeout=120) as r:
rows = json.load(r)["leaderboardRows"]
MAX_TURNOVER = 100 # 30-day volume above 100x account value looks like market making
picked = []
for row in rows:
month = dict(row["windowPerformances"])["month"] # the app labels this 30D
value, pnl, vlm = float(row["accountValue"]), float(month["pnl"]), float(month["vlm"])
if value < 100_000 or vlm / value > MAX_TURNOVER:
continue
picked.append((pnl, row["ethAddress"], value, vlm / value))
picked.sort(reverse=True)
print(len(rows), "rows;", len(picked), "left after the filter")
def info(body):
req = urllib.request.Request("https://api.hyperliquid.xyz/info",
data=json.dumps(body).encode(),
headers={"Content-Type": "application/json"})
with urllib.request.urlopen(req, timeout=30) as r:
return json.load(r)
for pnl, addr, value, turnover in picked[:10]:
# the portfolio request also returns perp-only windows (perpMonth = perps, 30 days)
perp = dict(info({"type": "portfolio", "user": addr}))["perpMonth"]["pnlHistory"]
perp_pnl = float(perp[-1][1]) if perp else 0.0
print(f"{addr} 30D PnL ${pnl / 1e6:6.1f}M perps ${perp_pnl / 1e6:6.1f}M "
f"value ${value / 1e6:5.1f}M turnover {turnover:5.1f}x")
time.sleep(0.5)| Rank | Wallet | 30-day PnL | Of which perps | Account value | Volume ÷ value |
|---|---|---|---|---|---|
| 1 | 0xb83d…6e36 | $105.4M | $105.5M | $14.9M | 62.0x |
| 2 | 0x659d…9d63 | $52.2M | $0.0M | $51.3M | 0.0x |
| 3 | 0x7fda…17d1 | $33.2M | $32.8M | $30.6M | 77.4x |
| 4 | 0xb695…a92d | $32.9M | $32.7M | $32.8M | 5.0x |
| 5 | 0x45d2…d029 | $32.3M | $32.1M | $54.5M | 0.0x |
Big 30-day PnL says nothing about risk; see our whale-tracking guide.
Skip the plumbing with Senpi
Senpi publishes a free JSON file for every Hyperliquid perp it covers, no key needed. https://senpi.ai/traders lists wallets with $1M or more of realized profit in Senpi’s index and $1M or more of all-time PnL on Hyperliquid, each with open positions and record.
To act on a wallet, Senpi can mirror traders you choose, after the agent researches their record. Each strategy trades from its own strategy wallet; the agent holds no key and cannot withdraw.
Does Hyperliquid have a leaderboard API?
Not a documented one. The leaderboard page loads a public JSON file, https://stats-data.hyperliquid.xyz/Mainnet/leaderboard, that can change without notice.
How far back does Hyperliquid historical data go?
Hourly funding goes back to 2023 (BTC from May 12, 2023); candles to the latest 5,000 per interval; a wallet’s fills to its latest 10,000.
Do I need an API key for Hyperliquid market data?
No. The limit is 1,200 weight a minute per IP; a 429 response means wait and retry.
Can I follow top Hyperliquid traders without writing code?
Yes. Senpi can mirror traders you choose, after the agent researches their record, and https://senpi.ai/traders lists wallets with open positions and record.
Sources: Hyperliquid docs (Info endpoint, Perpetuals, Rate limits and user limits, Historical data, llms-full.txt), the Hyperliquid app’s leaderboard JavaScript, the leaderboard file and Hyperliquid API calls, all checked Nov 17, 2026.
This guide is educational, not financial advice. Leaderboard figures describe past results and are not a forecast.
Follow proven Hyperliquid traders without the data plumbing
Pick a wallet, let the agent research its record, and mirror it from its own strategy wallet.
Related articles
Hyperliquid funding, margin and liquidation explained
How Hyperliquid funding, margin modes and liquidation work, with Nov 2026 numbers and a worked $10,000 example. Fee tiers have their own page.
What is the funding rate in crypto? How it works on Hyperliquid, with dated BTC rates
The funding rate is what longs and shorts pay each other to keep a perpetual future near spot. How Hyperliquid sets it every hour, a worked example, and dated BTC, ETH, SOL, HYPE and stock perp rates.
Hyperliquid fees explained (Nov 2026): maker, taker, builder fees
On a paid Senpi plan you pay only Hyperliquid’s fee. Hyperliquid’s fees on Nov 18, 2026: 0.045% taker, 0.015% maker, tiers, discounts, builder fees by app and HIP-3 rates.
Anthropic stock before the IPO: how to trade ANT now (Nov 2026)
You can trade Anthropic before its IPO: the ANT pre-IPO perp trades 24/7 on Hyperliquid and Senpi, long or short. How it’s priced, what happens at listing, the risks.