Long/short history of a coin

Long/short positioning of one coin over time: tracked Hyperliquid positions and exchange account ratios.

GET/api/v1/long-short/{coin}/historyEvery key

The same data on the website, no key needed: BTC positioning.

Description

Long/short history of one coin (API 1.51.0), oldest first: one row per 5-minute, hourly or daily bucket with its start in t, in the shape of the /long-short rows (the same answer as GET /long-short with coin and a time window, under the path of /markets/{coin}/history). hl = the tracked Hyperliquid positions since our collection began (USD and wallets per side, ratio = longUsd / shortUsd); binance / bybit = the account ratios of each exchange, as far back as its history reaches. Each bucket holds its newest stored values; a bucket without a stored row is missing, nothing is interpolated. Pages: a response holds the newest limit buckets of the window; meta.nextCursor / meta.nextUrl lead to the older ones (null when nothing older is stored). from is clamped to the plan history (meta.warnings says so), to to now minus the feed delay. While an exchange is withheld its ratios are left out of every row (meta.restricted).

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 30 days, 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. Paid keys read the plan's history, the same on monthly and yearly billing: GET /me states the days.

No key
24 h
Free
30 days
Pro
1 year
Desk
3 years
API Dev
1 year
API Pro
3 years

History window per plan. Limits: Authentication & limits.

Parameters

Parameters of /long-short/{coin}/history
ParameterDescription
coinstring · pathrequiredCoin, e.g. BTC or ETH (case-insensitive). 404 for an unknown coin; a known coin without stored ratios answers an empty list.e.g. BTC
tfstring5m, 1h (default) or 1d, UTC aligned. 5m follows the 5m heatmap columns, open on every plan and keyless; the window is the plan history.one of 5m, 1h, 1d · default 1h
intervalstringdeprecatedDeprecated (API 1.56.0): the earlier name of `tf`, accepted with the same meaning until v2; use tf. Send one of the two.one of 5m, 1h, 1d · default 1h
fromstringStart (ISO 8601 or a plain date, optional; default: `limit` buckets before `to`). Clamped to the plan history (meta.warnings says so).ISO 8601 (UTC), e.g. 2026-10-23T12:00:00Z or 2026-10-23
tostringEnd, exclusive (ISO 8601 or a plain date, optional; default now).ISO 8601 (UTC), e.g. 2026-10-23T12:00:00Z or 2026-10-23
limitintegerNumber of items, default 500, clamped to 1–500.1–500 · default 500 · e.g. 24
cursorstringOlder buckets: the value of meta.nextCursor from the previous response (keep the other parameters unchanged). Cursors are signed: an edited cursor answers 400.e.g. the value of meta.nextCursor
fieldsstringComma-separated fields of every item to return, e.g. t,hl,binance (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.e.g. coin,hl,updatedAt
formatstringjson (default: the { data, meta } envelope) | csv (the rows with a header line; /funding and /funding/predicted one line per coin and venue with the column venue, /long-short and /funding/spreads with nested objects as columns such as hl_longUsd; other 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. csv and ndjson need a plan that downloads files on the website (Pro, Desk, API Dev, API Pro); keyless access and free keys answer 403 plan_required (param format).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.

    • [].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.
    Show the 5 fields of [].hl
    • [].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).
    • [].tstring (ISO 8601)History only (a request with from, to or interval): start of the bucket.
    • [].binanceobject · nullableBinance long/short account ratios (only while Binance is switched on and we may pass it on through the API).
    • [].binance.accountRationumber · nullableLong / short accounts.
    • [].binance.topAccountRationumber · nullableTop traders, accounts.
    • [].binance.topPositionRationumber · nullableTop traders, positions.
    • [].bybitobject · nullableBybit long/short account ratio (only while Bybit is switched on and we may pass it on through the API).
    • [].bybit.accountRationumber · nullableLong / short accounts.
    • [].gateobject · nullableGate long/short ratios (5-minute statistics of the exchange). API 1.59.0.
    • [].gate.accountRationumber · nullableLong / short accounts.
    • [].gate.topAccountRationumber · nullableTop traders, accounts.
    • [].gate.topPositionRationumber · nullableTop traders, positions.
    • [].htxobject · nullableHTX long/short ratios of the top traders; HTX publishes no ratio of all accounts. API 1.59.0.
    • [].htx.topAccountRationumber · nullableTop traders, accounts (buy / sell).
    • [].htx.topPositionRationumber · nullableTop traders, positions (buy / sell).

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 are 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 24sOperationalHyperliquid positions & whales 19sOperationalLiquidation heatmap & levels 25sOperationalLighter markets & liquidations 39sOperationalLighter positions & heatmap 24sOperationalLighter on Robinhood Chain: positions & heatmap 23sOperationalAster markets 56sOperationalBinance markets 48sOperationalBybit markets 25sOperationalGate markets 53sOperationalHTX markets 59sOperationalKuCoin markets 57sOperationalBinance liquidations 34sOperationalBybit liquidations 34sOperationalGate liquidations 34sOperationalHTX liquidations 34sOperationaldYdX positions & heatmap 23sOperationalGMX positions & heatmap 19sOperationalLong/short & open interest history 28sOperationalOrder books & trade flow 19sOperationalOn-chain transfers 21sOperationalSecurity monitor 49sOperationalBlockmetric Sentiment 14mOperationalAgency releases 7mOperationalAlert delivery 21sOperationalDataset files 21mOperational07:28:43 UTC