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/markets/BTC/history?tf=1h"

Try it

Market history of one coin on one venue, oldest first: per bucket the mark, funding (hourly rate), open interest and the long/short ratio; on Hyperliquid (the default venue, main dex and HIP-3) also the oracle price, the premium and the impact bid / ask. venue (API 1.42.0): hyperliquid, lighter, binance, bybit, gate, htx, kucoin, aster; data.venue names it. Binance and Bybit: funding reaches back to the listing of the contract (before our own collection one bucket per settlement, the settled rate divided by the venue's settlement interval; mark is null there), open interest before our own collection is the exchange's open-interest history (openInterestUnit USDT, hourly buckets; our own samples are USD), longShortRatio is long accounts / short accounts of all accounts (Binance also topAccountRatio and topPositionRatio of its top traders). Hyperliquid: longShortRatio = longUsd / shortUsd of the wallets we track. Lighter: mark, funding and open interest. A field a venue does not have is null. 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; a page can hold fewer buckets than limit). oracle: Hyperliquid oracle price: the index price Hyperliquid computes from external spot sources and uses for funding; not a trade price. On HIP-3 markets (names like xyz:TSLA, data.oracleSetBy deployer) the market's deployer sets the oracle price. premium: the premium Hyperliquid reports in the market context (the funding input from the impact prices against the oracle). impactBid / impactAsk: average fill price of a market sell / buy of the venue impact size, not the best bid / ask. Every value is the last sample of the bucket that had it (funding on hourly buckets: the last sample of the hour, which is the rate settled at the end of that hour); we read the market context about every 30 seconds (HIP-3 markets too; every 2 minutes during an outage of our WebSocket feed), Hyperliquid updates the oracle about every 3 seconds, so a bucket shows our last reading, not every update. oracle, premium and the impact prices are recorded from the release of this endpoint (API 1.31.0) on and are null on older buckets; mark, funding and open interest reach back as far as the stored market history. Nothing is interpolated: a bucket without a sample is missing. closed: false marks the bucket still forming. from is clamped to the plan history, to to now minus the feed delay.

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 11sOperationalHyperliquid positions & whales 12sOperationalLiquidation heatmap & levels 16sOperationalLighter markets & liquidations 24sOperationalLighter positions & heatmap 12sOperationalLighter on Robinhood Chain: positions & heatmap 21sOperationalAster markets 1mOperationalBinance markets 55sOperationalBybit markets 44sOperationalGate markets 1mOperationalHTX markets 1mOperationalKuCoin markets 1mOperationalBinance liquidations 20sOperationalBybit liquidations 20sOperationalGate liquidations 20sOperationalHTX liquidations 20sOperationaldYdX positions & heatmap 16sOperationalGMX positions & heatmap 24sOperationalLong/short & open interest history 1mOperationalOrder books & trade flow 17sOperationalOn-chain transfers 12sOperationalSecurity monitor 1mOperationalBlockmetric Sentiment 7mOperationalAgency releases 5mOperationalAlert delivery 12sOperationalDataset files 29mOperational07:36:59 UTC