Contents

Long/short positioning

Long/short positioning per coin: Hyperliquid from the tracked positions (USD and wallet counts per side, ratio = longUsd / shortUsd) and the public account ratios of the enabled exchanges (Binance: all accounts, top accounts, top positions; Bybit; OKX) from the last 60 minutes.

GET/api/v1/long-shortEvery key

Description

A switched-off exchange is left out of the row (no key); null means the exchange is on but has no ratio for the coin. Sorted by Hyperliquid open interest. Licence review: the exchanges’ published ratios are their data 1:1 and left out like a switched-off exchange (meta.restricted); rows then cover coins with a Hyperliquid market.

Who can call it

Available with every key and keyless (X-Blockmetric-Access: public). Keys of Free accounts get free-tier data (real-time feeds, 30 days of history, heatmap over time for every coin over the last 24 hours, liquidation levels now for every coin, the same as the free web plan); Pro and Desk keys the data of their plan; API Dev / API Pro raise the limits.

No key
24 h
Free
30 days
Pro
365 days
Desk
1095 days
API Dev
365 days
API Pro
1095 days

History window per plan. Limits: Authentication & limits.

Parameters

Parameters of /long-short
ParameterDescription
coinstringOnly this coin (optional).
limitintegerNumber of items, default 50, clamped to 1–500.1–500 · default 50
fieldsstringComma-separated fields of every item to return, e.g. coin,hl (case-insensitive). All other fields are left out, so large lists get much smaller; an unknown name answers 400 with the list of fields. Default: every field.
formatstringjson (default: the { data, meta } envelope) | csv (the rows with a header line; nested values as JSON text) | ndjson (one JSON object per row and line). csv and ndjson carry the meta block in headers: Link rel="next" and X-Blockmetric-Next-Cursor (next page), X-Blockmetric-Next-After (forward polling), X-Blockmetric-Updated-At, X-Blockmetric-Warnings, X-Blockmetric-License. Errors stay JSON.one of json, csv, ndjson · default json

Response fields

Every success is { data, meta }; these are the fields of data. meta is the same on every endpoint.

Response fields of /long-short
FieldDescription
[].coinstringCoin name as on Hyperliquid (BTC, kPEPE, HIP-3 names like xyz:TSLA).
[].hlobject · nullableHyperliquid from the tracked positions; null when no tracked position exists.
[].hl.longUsdnumberTracked long notional (USD).
[].hl.shortUsdnumberTracked short notional (USD).
[].hl.longAccountsintegerTracked wallets with a long position.
[].hl.shortAccountsintegerTracked wallets with a short position.
[].hl.rationumber · nullablelongUsd / shortUsd.
[].updatedAtstring (ISO 8601) · nullableNewest data time of this item (ISO 8601 UTC).
[].binanceobject · nullableBinance published long/short ratios (only while Binance is switched on and licensed for the API).
[].binance.accountRationumber · nullableLong / short accounts.
[].binance.topAccountRationumber · nullableTop traders, accounts.
[].binance.topPositionRationumber · nullableTop traders, positions.
[].bybitobject · nullableBybit published long/short ratio (only while Bybit is switched on and licensed for the API).
[].bybit.accountRationumber · nullableLong / short accounts.
[].okxobject · nullableOKX published long/short ratio (only while OKX is switched on and licensed for the API).
[].okx.accountRationumber · nullableLong / short accounts.

Errors

Methodology

Code snippets in these docs are licensed under MIT-0: copy them into your own code without attribution. The SDKs, CLI and MCP server will be, once published, Apache-2.0; the name Blockmetric is not licensed (forks must be renamed). Data from the API is governed by the API terms; third-party exchange data by the exchange’s terms.

LiveHyperliquid markets 15sOperationalHyperliquid positions & whales 1sOperationalLiquidation heatmap & levels 2sOperationalLighter markets & liquidations 23sOperationalLighter positions & heatmap 2sOperationalLighter RH positions & heatmap 2sOperationalBinance markets 44sOperationalBybit markets 14sOperationalBinance liquidations 23sOperationalBybit liquidations 23sOperationaldYdX positions & heatmap 1sOperationalGMX positions & heatmap 5sOperationalLong/short & open interest history 6sOperationalOrder books & trade flow 3sOperationalOn-chain transfers 9sOperationalSecurity monitor 53sOperationalBlockmetric Sentiment 9mOperationalOfficial news 8mOperationalAlert delivery 2sOperational10:06:41 UTCData: Blockmetric Research · Binance · Bybit