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/basis?hours=24"

Try it

Basis of one coin: how far the perpetual trades above or below its spot reference, as fractions (0.001 = 0.1 %), never annualised (a perpetual has no expiry). now: per venue the mark price against the venue's reference price (Hyperliquid's oracle price, the index price of each exchange), basis = (mark - reference) ÷ reference, from the newest market reading (not older than 30 minutes). series: over the window, Hyperliquid perp against its oracle price (kind index, 5-minute rows for 90 days, hourly beyond) and perp against spot on the same exchange where we record spot trades (kind spot: the last trade of each bar on both markets), each with mean, lowest, highest and last value. The exchanges' index price is stored as a current value without history, so they have no index line over time. termStructure is null: our collectors read perpetual contracts, no dated futures, so there is no curve by expiry (meta.warnings says so). Window: hours, default 24, within the plan history (free key 30 days, keyless 24 h, Pro / API Dev 365 days, Desk / API Pro 1095 days). Exchange data: values per exchange of Binance, Bybit, Gate, HTX, KuCoin and Aster are returned (single liquidations, prints, order books, tickers, funding and ratios per exchange, exchange candles, sums per venue), as collected and without warranty. We may withhold a venue at any time: then its rows and its own sums are left out, asking for it answers 403 source_restricted, meta.restricted lists it, and sums over several venues stay. meta.restricted is absent while nothing is withheld.

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 7sOperationalHyperliquid positions & whales 9sOperationalLiquidation heatmap & levels 9sOperationalLighter markets & liquidations 19sOperationalLighter positions & heatmap 8sOperationalLighter on Robinhood Chain: positions & heatmap 6sOperationalAster markets 1mOperationalBinance markets 53sOperationalBybit markets 42sOperationalGate markets 50sOperationalHTX markets 1mOperationalKuCoin markets 1mOperationalBinance liquidations 14sOperationalBybit liquidations 14sOperationalGate liquidations 14sOperationalHTX liquidations 14sOperationaldYdX positions & heatmap 9sOperationalGMX positions & heatmap 20sOperationalLong/short & open interest history 24sOperationalOrder books & trade flow 12sOperationalOn-chain transfers 9sOperationalSecurity monitor 8sOperationalBlockmetric Sentiment 6mOperationalAgency releases 4mOperationalAlert delivery 6sOperationalDataset files 28mOperational07:35:53 UTC