DEV Community

Ken-Mutisya
Ken-Mutisya

Posted on

"Crowd long, top traders short" is the normal state of crypto, not a signal. 3,915 hourly readings from OKX, Bitget and Gate

Crypto Twitter loves one chart: retail traders are heavily long while the "top traders" are short, so a squeeze must be coming. Exchanges publish the numbers behind that chart for free, so I pulled 100 hours of them for 20 coins on three exchanges and checked how often it happens and what follows.

Short version: it happens 80% of the time. It is the default, not an event.

Where the numbers come from

Binance and Bybit refuse requests from US cloud servers (HTTP 451 and 403), so a scheduled scraper can't rely on them. Three big venues answer every time, with no key:

OKX

GET https://www.okx.com/api/v5/rubik/stat/contracts/long-short-account-ratio-contract?instId=BTC-USDT-SWAP&period=1H
GET https://www.okx.com/api/v5/rubik/stat/contracts/long-short-account-ratio-contract-top-trader?instId=BTC-USDT-SWAP&period=1H
GET https://www.okx.com/api/v5/rubik/stat/contracts/long-short-position-ratio-contract-top-trader?instId=BTC-USDT-SWAP&period=1H
Enter fullscreen mode Exit fullscreen mode

Bitget

GET https://api.bitget.com/api/v2/mix/market/long-short?symbol=BTCUSDT&period=1h
GET https://api.bitget.com/api/v2/mix/market/account-long-short?symbol=BTCUSDT&period=1h
GET https://api.bitget.com/api/v2/mix/market/position-long-short?symbol=BTCUSDT&period=1h
Enter fullscreen mode Exit fullscreen mode

Gate (one call, and it adds open interest, liquidations and mark price)

GET https://api.gateio.ws/api/v4/futures/usdt/contract_stats?contract=BTC_USDT&interval=1h&limit=100
Enter fullscreen mode Exit fullscreen mode

Each returns a ratio (long accounts ÷ short accounts). To turn it into "% long", use ratio / (1 + ratio). A ratio of 2.84 means 74% of accounts are long.

const r = await (await fetch('https://www.okx.com/api/v5/rubik/stat/contracts/long-short-account-ratio-contract?instId=BTC-USDT-SWAP&period=1H')).json();
const [ts, ratio] = r.data[0];
console.log(new Date(+ts).toISOString(), `${(ratio / (1 + +ratio) * 100).toFixed(1)}% of accounts long`);
Enter fullscreen mode Exit fullscreen mode

Two gotchas:

  • The newest bucket is still in progress. Its taker volume is partial (I saw 0 buys on SOL for the current hour). Use the last completed period.
  • "Top trader" means something different on each exchange. Compare direction and change over time, not the level across venues.

How often the crowd and top traders disagree

I labelled each reading "crowd long, top traders short" when all accounts were net long (ratio > 1) but top traders' positions were net short (ratio < 1).

Exchange Readings Crowd long, top short Aligned
OKX 1,881 83% 17%
Gate 1,900 82% 18%
Bitget 116 25% 75%

On OKX and Gate, retail is long and the big accounts lean short almost all the time. The averages explain why: across 20 coins, 67% of OKX accounts and 64% of Gate accounts are long, while top traders' positions average 47% long. Small accounts skew long (people buy coins they like, often with leverage). Large accounts hedge, run basis trades and make markets, so their book leans short even when they are not bearish.

Bitget looks different only because it defines its groups differently. Its "all accounts" number averages 82% long.

Does it predict anything?

Gate publishes the mark price with each reading, so I checked the next 4 hours for every Gate reading:

Condition Readings Avg 4h return Up %
All readings 1,824 +0.04% 48%
Crowd long, top short 1,500 +0.04% 48%
Aligned 321 +0.06% 50%
Crowd 70%+ long 172 −0.17% 41%

The famous divergence predicts nothing: same returns as everything else. The only thing that leaned anywhere was the extreme, 70%+ of accounts long, which was followed by a slightly negative 4 hours. That is 100 hours of one week's market, 172 overlapping readings, so treat it as "worth watching", not a strategy.

What I'd watch instead

  • Extremes and changes, not the state. 80% of retail long is normal; a jump from 65% to 78% in a day is information.
  • The same coin across exchanges. If OKX, Gate and Bitget all hit their own highs at once, that is a broader crowding than any one venue.
  • Positions, not accounts. Top-trader position ratios move less and mean more than account counts.

Data and a ready-made scraper

The 3,915 hourly readings (20 coins × 3 exchanges, plus open interest and liquidations from Gate) are free on Kaggle: Crypto Long/Short Ratio: 20 Coins, 3 Exchanges.

To collect your own on a schedule, the scraper that maps all three exchanges onto one schema is on Apify as Crypto Long/Short Ratio. Snapshot mode gives the latest completed hour; history mode backfills up to 100 points.

Do you trade positioning data, or is it noise to you?

Top comments (0)