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.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Available on these API plans: Professional Enterprise
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.
| Field | Type | Always Returned | Description |
|---|---|---|---|
code | string | Yes | Business status code; "0" means success |
msg | string | No | Result message; may be omitted on success |
data | array of object | Yes | Long/short statistics series for the tag group |
data[].time | integer (int64) | Yes | Time, timestamp in milliseconds (UTC) |
data[].group_name | string | Yes | Wallet tag, lowercase, e.g., whale |
data[].account_long_count | integer | Yes | Number of accounts in the group holding long positions |
data[].account_short_count | integer | Yes | Number of accounts in the group holding short positions |
data[].short_position_usd | number | Yes | Short position value of the group, in USD |
data[].long_position_usd | number | Yes | Long position value of the group, in USD |
data[].account_long_short_ratio | number | No | Long/short account ratio (long accounts ÷ short accounts); does not appear in the returned data |
data[].position_long_short_ratio | number | No | Long/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 Plan | Access |
|---|---|
| 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.
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
| Scenario | Description |
|---|---|
| Compare Wallet Directions | For 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. Amounts | Look 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 Backtesting | Use 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 Distribution | Use together with Hyperliquid Wallet Position Distribution: that endpoint shows real-time data, this endpoint shows history. |
Related Endpoints
| Endpoint | How It Differs |
|---|---|
| Hyperliquid Long/Short Account Ratio | Long/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 Distribution | Real-time statistics by position size tier |
| Hyperliquid Wallet PnL Distribution | Real-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.
