QUANT_API
UTCSign inGet a key ↗
FUNDING · ✓ LIVE

Hyperliquid Basis

Hyperliquid perp basis vs spot.

funding.basis_hl(perp − spot) / spotHyperliquid · Binance

What it measures

The Hyperliquid perpetual's basis versus spot: (perp − spot) / spot, with spot from Binance. Basis is the price-space twin of funding: it measures how far the perp has detached from the underlying right now, rather than what the detachment costs per funding interval. Tracking it on an on-chain venue alongside the coin-margined and USDT-margined basis fills out the cross-collateral, cross-venue carry picture (Makarov & Schoar).

References: Makarov-Schoar basis.

Point-in-time, leak-free

Like every QUANT_API feature, funding.basis_hl is computed point-in-time: each value uses only data that had actually arrived at the timestamp you query — live or historical. No restatements, no backfills that quietly rewrite the past, no look-ahead. The value your backtest sees at a given stamp is the value the live API would have returned at that stamp. How we enforce this is documented on the methodology page.

Windows & transforms

The signal is computed over rolling windows; each window can be served raw or through a transform (z-score, percentile rank, delta…). Which windows and transforms you can query depends on your plan — the signal itself supports:

WINDOWS
1s5s15s30s1m5m15m30m45m1h2h4h12h24h
TRANSFORMS
leveldeltaratezscorepctrankewmaminmaxrange

Plan & access

funding.basis_hl unlocks on the Edge plan ($499/mo) and every plan above it. Every new account starts with a 14-day free trial of the Signal plan — no card required. The trial covers Signal-plan features, so you can evaluate the API end-to-end before upgrading to Edge.

Start free, then upgrade →Compare plans

Example call

Resolve the latest value for BTC (5m window, zscore transform — both available on the Edge plan):

curl -G https://api.quant-api.dev/v1/features/live \
  -H "Authorization: Bearer fk_live_<your_key>" \
  --data-urlencode "asset=BTC" \
  --data-urlencode "features=funding.basis_hl@5m:zscore"

Same key works on /v1/features/historical for point-in-time backtesting — see the API docs.

RELATED SIGNALS
Cross-Venue Average Funding funding.funding_avgFunding Dispersion funding.funding_dispersionFunding Rate (USDT-M) funding.funding_usdtmGuide: how this family trades in practiceRead ↗