API explorer

Pick an endpoint, fill in the parameters and send. Runs through the real API: with your key when you are logged in, without a key otherwise. Your key never reaches the page.

Request
curl -s -H "X-Blockmetric-Access: public" \
  "https://api.blockmetric.io/v1/long-short/BTC/history?tf=1h"

Try it

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).

No key: 24 h of history, 10 requests a minute and 300 a day per IP address in this console. From your own code, keyless access is a trial of 25 requests a day.

Get a free key: 30 days of history and 60 requests a minute, counted for your account alone.

Choose an endpoint, fill in parameters and send. The response appears here with its status, headers and timing.

Parameters, response fields and a real example of every endpoint: API reference.

LiveHyperliquid markets 14sOperationalHyperliquid positions & whales 15sOperationalLiquidation heatmap & levels 19sOperationalLighter markets & liquidations 43sOperationalLighter positions & heatmap 19sOperationalLighter on Robinhood Chain: positions & heatmap 20sOperationalAster markets 29sOperationalBinance markets 1mOperationalBybit markets 1mOperationalGate markets 18sOperationalHTX markets 22sOperationalKuCoin markets 23sOperationalBinance liquidations 41sOperationalBybit liquidations 41sOperationalGate liquidations 41sOperationalHTX liquidations 41sOperationaldYdX positions & heatmap 18sOperationalGMX positions & heatmap 28sOperationalLong/short & open interest history 48sOperationalOrder books & trade flow 16sOperationalOn-chain transfers 21sOperationalSecurity monitor 32sOperationalBlockmetric Sentiment 6mOperationalAgency releases 5mOperationalAlert delivery 17sOperationalDataset files 28mOperational07:36:17 UTC