WHALE TRACKING

How to Get Any Hyperliquid Wallet's Positions with the API

By Perpy · Updated · 5 min read

SHORT ANSWER

Hyperliquid's info endpoint is public and needs no API key. To get any address's open perp positions, POST {"type": "clearinghouseState", "user": "0x…"} to https://api.hyperliquid.xyz/info; the response has the account's margin summary and one entry per position with size, entry price, position value, unrealized PnL, leverage and liquidation price. Use userFills or userFillsByTime for trade history and the WebSocket userFills subscription to be told about new fills as they happen. Requests are rate-limited per IP, so poll a short list of addresses rather than thousands.

SEE IT LIVELargest whale positions now →Top traders leaderboard →

Key takeaways

  • Reads go to one public endpoint, POST /info, with a JSON body that names the request type.
  • clearinghouseState returns positions for the main perp dex; pass a dex name for HIP-3 markets.
  • userFills returns at most the 2,000 most recent fills; userFillsByTime pages by time, up to the 10,000 most recent.
  • WebSocket subscriptions push fills and account state, but one connection can follow at most 10 unique users.
  • REST requests share a weight budget of 1,200 per minute per IP; clearinghouseState weighs 2, userRole 60.

Which endpoint gives a wallet's positions?

Everything read-only goes through the info endpoint, https://api.hyperliquid.xyz/info, as a POST with a JSON body. No key or signature is needed, because positions on Hyperliquid are public. The request for an account's perp positions is clearinghouseState.

curl -s https://api.hyperliquid.xyz/info \
  -H "Content-Type: application/json" \
  -d '{"type": "clearinghouseState", "user": "0x…"}'

Use the account's 42-character address. If the address is an agent (API wallet), its trades belong to another account; userRole tells you which. The request defaults to the first perp dex; HIP-3 markets live on separate dexes and need a dex field.

What does the response contain?

Useful fields in a clearinghouseState response
FieldWhat it is
marginSummary.accountValueCollateral plus unrealized PnL for the perp account
marginSummary.totalNtlPosCombined notional of open positions
assetPositions[].position.coinThe market, e.g. BTC
position.sziSigned size: positive is long, negative is short
position.entryPxAverage entry price
position.positionValueSize at the current mark price, in USD
position.unrealizedPnlProfit or loss at the mark price
position.leverageType (cross or isolated) and value
position.liquidationPxEstimated liquidation price; can be null

Our guide on reading a Hyperliquid wallet explains what each of these numbers means and where they can mislead.

How do you get a wallet's trade history?

  • userFills returns the most recent fills, at most 2,000.
  • userFillsByTime takes a start (and optional end) time in milliseconds and returns up to 2,000 fills per response; only the 10,000 most recent fills are available this way. To page, use the last returned timestamp as the next start time.
  • openOrders and frontendOpenOrders show resting orders, which often reveal where a trader plans to add or take profit.

Each fill carries the coin, price, size, side, direction (open or close), closed PnL and fee. For older history than the API keeps, Hyperliquid points to its historical data archive.

How do you follow a wallet in real time?

Open a WebSocket to wss://api.hyperliquid.xyz/ws and subscribe per address. userFills pushes each new fill; clearinghouseState and openOrders push account changes; userEvents covers fills, funding and liquidations.

{"method": "subscribe", "subscription": {"type": "userFills", "user": "0x…"}}

What rate limits apply?

REST requests share an aggregated weight limit of 1,200 per minute per IP. clearinghouseState weighs 2, userRole weighs 60, and most other info requests weigh 20; fill and order history requests add weight for every 20 items returned. In practice, polling 50 addresses' positions every minute costs about 100 of the 1,200.

Weights of common read requests
RequestWeight
clearinghouseState, l2Book, allMids2
Most other info requests (e.g. openOrders)20
userFills, userFillsByTime20 + more per 20 fills returned
userRole60

What does a minimal whale tracker look like?

  1. Pick addresses: from the leaderboard, the explorer, or your own research. Check each one's role and skip vaults if you want individual traders.
  2. Poll clearinghouseState for each address every minute or so, or subscribe to userFills for up to 10 of them.
  3. Store the last state and compare: a new coin, a flipped sign on szi or a large size change is an event.
  4. Notify yourself with enough context (coin, side, size, entry, leverage) to judge the move without opening the explorer.

Frequently asked questions

Do I need an API key to read Hyperliquid positions?

No. The info endpoint is public and unauthenticated. Keys and signatures are only needed to place orders through the exchange endpoint.

Why does clearinghouseState return no positions for a big account?

The account may hold only spot balances, keep its positions on a sub-account, or trade HIP-3 markets that live on a separate dex. Try the dex parameter and check its sub-accounts.

How many wallets can I follow live?

Ten unique users across user-specific WebSocket subscriptions per IP. Beyond that, poll the REST endpoint within the 1,200-weight-per-minute budget.

Can I get a list of all Hyperliquid whales from the API?

There is no 'whales' request. Most trackers start from the public leaderboard, which lists accounts with their account value, PnL and volume, and then read each address's positions.

Sources

  1. Info endpoint · Hyperliquid Docs
  2. Info endpoint: perpetuals · Hyperliquid Docs
  3. WebSocket subscriptions · Hyperliquid Docs
  4. Rate limits and user limits · Hyperliquid Docs
  5. Historical data · Hyperliquid Docs
  6. Leaderboard · Hyperliquid web app

Facts checked against these sources on November 24, 2026. Protocol parameters change; the linked documentation is the authority.

Browse the glossary · All guides

Educational content only, not investment, financial or trading advice. Nothing here is a recommendation to buy, sell or hold any asset. Perpy is an independent app and is not affiliated with, endorsed by or sponsored by Hyperliquid. Read the risk disclaimer.