Hyperliquid Long/Short Account Ratio

Get the long/short account ratio history of coins on Hyperliquid: the number and share of accounts holding long and short positions at each point in time, and the long/short account ratio. Useful for watching how retail sentiment on Hyperliquid changes.

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

Available on these API plans: Standard Professional Enterprise

Update frequencyReal-time

Response Data

data is an array sorted by time from earliest to latest; each element is the statistics at one point in time, and time is the time of that interval. The share fields are already percentage values: 58.67 means 58.67%. The example on the right shows the data returned when symbol is omitted (all coins).

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 objectYesSeries of long/short account statistics; each element is one point in time
data[].timeinteger (int64)YesTime, timestamp in milliseconds (UTC)
data[].global_account_long_countintegerYesNumber of accounts holding long positions
data[].global_account_short_countintegerYesNumber of accounts holding short positions
data[].global_account_total_countintegerYesTotal number of accounts (long + short)
data[].global_account_long_percentnumberYesShare of long accounts, in %
data[].global_account_short_percentnumberYesShare of short accounts, in %
data[].global_account_long_short_rationumberYesLong/short account ratio: long accounts ÷ short accounts; above 1 means more accounts are long. Equals global_account_long_percent ÷ global_account_short_percent, and may differ slightly in the last few decimal places from dividing the two account counts directly

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✅ Yes
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.

Get data with Python
Have AI write a function that fetches the last 30 days of daily Hyperliquid long/short account ratio data for BTC.
Compare with Binance
Have AI write code that compares the long/short account ratios of Hyperliquid and Binance.
Understand this endpoint
Have AI explain the parameters and returned fields 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
Retail Sentiment TrackingThe long/short account ratio reflects the number of accounts regardless of position size, so it is closer to the overall sentiment of ordinary users.
Contrarian IndicatorWhen the account ratio leans heavily to one side, the market is prone to move the other way; it can serve as a reference for contrarian trading.
On-Chain vs. Centralized ExchangesCompare with Global Long/Short Account Ratio History to see how sentiment differs between Hyperliquid users and users of centralized exchanges.
Combine with Whale DataCombine with Hyperliquid Wallet Position Distribution to tell apart the directions of large traders and retail traders.

Related Endpoints

EndpointHow It Differs
Hyperliquid Long/Short Account Ratio (by Tag)Long and short account counts split by wallet tag
Hyperliquid Wallet Position DistributionReal-time long/short statistics by position size tier
Global Long/Short Account Ratio HistoryLong/short account ratio by trading pair on centralized exchanges
Top Trader Long/Short Account Ratio HistoryLong/short account ratio of top traders on centralized exchanges

FAQ

What happens if I omit symbol?

The endpoint queries all; it does not return only BTC. It returns a single series that is not split by coin, one data point per point in time, with no coin field. To look at a single coin only, pass symbol explicitly, e.g., BTC.

Does a share of 58.67 mean 58.67%?

Yes. global_account_long_percent and global_account_short_percent are already percentage values; there is no need to multiply them by 100.

What values can interval take?

Options: 5m, 1h, 1d. interval is required: it cannot be omitted and has no default value.

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 Long/Short Account Ratio

What Is the Long/Short Account Ratio?

Long/short account ratio = number of accounts holding long positions ÷ number of accounts holding short positions. It only counts heads and ignores position size, so it better reflects the view of most users.

How Is the Long/Short Account Ratio Different from the Long/Short Position Ratio?

The account ratio is calculated from the number of accounts, the position ratio from position value. A few large traders alone can make the position ratio lean heavily to one side, while the account ratio is barely affected.

How Do I See Long and Short Account Counts by Wallet Type?

Use Hyperliquid Long/Short Account Ratio (by Tag) and choose a tag such as Whale or Smart_Money with wallet_tag.

Query Params
string

Coin symbol; optional, e.g., BTC, ETH. If omitted or passed empty, the endpoint queries all and returns a single series that is not split by coin, one data point per point in time, with no coin field. For the coins you can query, see the Supported Coins endpoint.

string
required
Defaults to 1d

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

int32
1 to 1000
Defaults to 1000

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

int64

Start time, timestamp in milliseconds (UTC); optional, 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