Hyperliquid Long/Short Account Ratio (by Tag)

Get the history of long and short account counts and long and short position values for a coin on Hyperliquid, by wallet tag (e.g., Whale, Smart_Money). Useful for comparing the direction of different types of wallets on the same coin.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Available on these API plans: Professional Enterprise

Update frequencyEvery 15 minutes

Response Data

data is an array sorted by time from earliest to latest; each element is the statistics of the tag group at one point in time. The endpoint returns account counts and position values; you need to calculate the long/short ratio yourself, e.g., account_long_count ÷ account_short_count.

200 · application/json · See the response example in the right panel.

FieldTypeAlways ReturnedDescription
codestringYesBusiness status code; "0" means success
msgstringNoResult message; may be omitted on success
dataarray of objectYesLong/short statistics series for the tag group
data[].timeinteger (int64)YesTime, timestamp in milliseconds (UTC)
data[].group_namestringYesWallet tag, lowercase, e.g., whale
data[].account_long_countintegerYesNumber of accounts in the group holding long positions
data[].account_short_countintegerYesNumber of accounts in the group holding short positions
data[].short_position_usdnumberYesShort position value of the group, in USD
data[].long_position_usdnumberYesLong position value of the group, in USD
data[].account_long_short_rationumberNoLong/short account ratio (long accounts ÷ short accounts); does not appear in the returned data
data[].position_long_short_rationumberNoLong/short position ratio (long position value ÷ short position value); does not appear in the returned data

API Plans

Only the API plans marked Yes in the table below can call this endpoint. For the price of each plan, see API Plans.

API PlanAccess
Hobbyist❌ No
Startup❌ No
Standard❌ No
Professional✅ Yes
Enterprise✅ Yes

Use This Endpoint with AI

Pick a task and click Open in ChatGPT or Open in Claude: the AI reads this page first and then gives you the result. You can also click Copy and paste the full prompt into the AI tool you use.

Compare whales and retail
Have AI write code that compares the long/short account ratio trends of the Whale and Shrimp wallet types on BTC.
Smart money direction alert
Have AI write a script that alerts you when the ratio of smart money long to short position values flips.
Understand this endpoint
Have AI explain the wallet tags and each field in plain language.

This endpoint provides data through the REST API. Use the prompts above to have AI write the request code. For the tools available through MCP, see CoinGlass MCP.

Use Cases

ScenarioDescription
Compare Wallet DirectionsFor the same coin, compare the long/short positioning of tags such as Whale, Smart_Money and Shrimp to see whether large traders, smart money and retail traders agree.
Accounts vs. AmountsLook at account counts and position values together: if the account counts lean long while the position values lean short, a small number of large positions are shorting.
Sentiment BacktestingUse changes in the long/short positioning of tag groups as a signal and backtest its value as a reference for subsequent price moves.
Pair with Real-Time DistributionUse together with Hyperliquid Wallet Position Distribution: that endpoint shows real-time data, this endpoint shows history.

Related Endpoints

EndpointHow It Differs
Hyperliquid Long/Short Account RatioLong/short account ratio of all accounts, without splitting by tag
Hyperliquid Position Distribution (by Tag)History of address counts, PnL and long/short bias for a tag group
Hyperliquid Wallet Position DistributionReal-time statistics by position size tier
Hyperliquid Wallet PnL DistributionReal-time statistics by PnL amount tier

FAQ

What values can wallet_tag take?

16 in total. By position size: Shrimp, Fish, Dolphin, Apex_Predator, Small_Whale, Whale, Tidal_Whale, Leviathan; by PnL: Money_Printer, Smart_Money, Grinder, Humble_Earner, Exit_Liquidity, Semi_Rekt, Full_Rekt, Giga_Rekt. The returned group_name is lowercase.

Why is there no long/short ratio in the response?

Only account counts and position values are returned; there is no account_long_short_ratio or position_long_short_ratio. If you need them, calculate them yourself: account ratio = account_long_count ÷ account_short_count, position ratio = long_position_usd ÷ short_position_usd.

How far back does the data go? How often is it updated?

Historical data starts from 2026-03-20 00:00:00 UTC at the earliest and is updated every 15 minutes.

Why do I get more data points than limit when I pass both start and end times?

With interval=1h, limit=2 and a 3-hour window given by start_time and end_time, 3 data points were returned, starting at start_time. When both start and end times are specified, the number of data points returned is determined by the time window and does not necessarily equal limit. If you only want a fixed number of data points, pass only limit.

Learn More: Hyperliquid Wallet Tags

How Are Hyperliquid Wallet Tags Divided?

The tags fall into two groups: one by position size, from Shrimp to Leviathan; the other by PnL amount, from Money_Printer to Giga_Rekt (those who have lost the most).

Why Look at Long/Short by Tag?

The long/short ratio of all accounts is dominated by small accounts, which are the most numerous. Split by tag, you can see separately the direction of large traders, of those making money and of those losing money.

Which Matters More, the Account Ratio or the Position Ratio?

The account ratio reflects how many people are bullish or bearish; the position ratio reflects how much money is bet on each side. When the two point in opposite directions, it often means that a small number of large positions disagree with the majority.

Query Params
string
required
Defaults to BTC

Coin symbol; required, e.g., BTC, ETH. For the coins you can query, see the Supported Coins endpoint.

string
required
Defaults to 1d

Data interval; required, e.g., 1h. Options: 10m, 1h, 1d.

string
required
Defaults to Shrimp

Wallet tag; required, e.g., Shrimp, Whale. Tiers by position size: Shrimp, Fish, Dolphin, Apex_Predator, Small_Whale, Whale, Tidal_Whale, Leviathan; tiers by PnL: Money_Printer, Smart_Money, Grinder, Humble_Earner, Exit_Liquidity, Semi_Rekt, Full_Rekt, Giga_Rekt. The returned group_name is lowercase (e.g., whale), and passing lowercase whale also works.

integer
1 to 1000
Defaults to 1000

Number of data points to return; default 1000, maximum 1000.

int64

Start time, timestamp in milliseconds (UTC); optional. Historical data starts from 2026-03-20 00:00:00 UTC at the earliest. E.g., 1792458000000 (2026-10-20 01:00 UTC). If omitted, end_time is set to the current time and start_time to limit intervals before end_time; an end time in the future is treated as the current time, and a start time that is not on an interval boundary is aligned to the next interval.

int64

End time, timestamp in milliseconds (UTC); optional, e.g., 1792468800000 (2026-10-20 04:00 UTC). If omitted, end_time is set to the current time and start_time to limit intervals before end_time; an end time in the future is treated as the current time, and a start time that is not on an interval boundary is aligned to the next interval.

Response

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json