[ Developers ] Public API

Spread analytics,
as JSON.

The same numbers that power the Parallax terminal: relative performance, correlation, z-scores, funding, execution cost and hedge-ratio estimates for any two Hyperliquid perps. Read-only, no key, rate limited per IP.

GEThttps://parallax-zeta-sooty.vercel.app/api/spreads/eth-btc

GET/api/spreads

All spreads

Every curated and collection spread with live analytics from 30 days of 4-hour candles. Unavailable spreads are included with a reason — never dropped.

60 req / min / IPs-maxage 120 s · server cache 5 minTry it →

Request

curl -s https://parallax-zeta-sooty.vercel.app/api/spreads | jq '.spreads[] | {slug, available, rel: .analytics.relativePerformancePts}'

Response shape

{
  spreads: SpreadSummary[]
  collections: { id, title, blurb, pairs: [string, string][] }[]
  generatedAt: number            // ms epoch
  notes: string[]
}

GET/api/spreads/{slug}

One spread

Live summary and pair analytics for any two listed underlyings. The slug is two lowercase tickers, long first: eth-btc, nvda-amd, gold-silver. Each ticker resolves at request time to its most liquid Hyperliquid listing (main dex or HIP-3).

60 req / min / IPs-maxage 60 s · candles cached per intervalTry it →
ParameterTypeDefaultDescription
interval5m | 15m | 1h | 4h | 1d | 1w1hCandle interval for the analytics.
barsinteger 30–2000720Number of candles in the lookback.

Request

curl -s "https://parallax-zeta-sooty.vercel.app/api/spreads/eth-btc?interval=1h&bars=720"

Response shape

SpreadSummary {
  slug: string
  a, b: LegSummary | null       // null when that leg is not listed
  available: boolean
  unavailableReason: string | null
  crossDex: boolean              // legs on different clearinghouses
  categories: string[]
  thesis: string | null
  analytics: {
    interval, bars, fromMs, toMs
    returnA, returnB             // fractions over the window
    relativePerformancePts       // (returnA − returnB) × 100
    relative24hPts, spreadChange24h
    correlation                  // of log returns
    spreadVol                    // annualised
    maxDrawdown                  // equal-dollar path, fraction
    divergencePts, zScore, zWindow
    dataQuality: { grade, bars, expectedBars, missingBars, longestGap, stalenessMs, notes }
  } | null
  sparkline: number[]            // relative-performance gap, 64 points
  funding: { hourlyUsd, dailyUsd, aprOnGross, differentialApr, longLegHourlyUsd, shortLegHourlyUsd } | null
  liquidityUsd: number | null    // thinner leg's 24h volume
  entryCostBps: number | null    // $1,000 per leg, one-way market entry
  asOf: number
}

LegSummary { symbol, coin, name, dex, category, collateral, markPx, change24h, fundingHourly,
             dayNtlVlm, openInterestUsd, maxLeverage, onlyIsolated, takerFee, makerFee }

GET/api/spreads/{slug}/hedge

Hedge estimate

A hedge ratio (short notional per 1 unit of long notional) with its methodology, lookback, correlation, volatilities, data quality, limitations and warnings. Beta-neutral uses BTC as the factor.

30 req / min / IPs-maxage 120 sTry it →
ParameterTypeDefaultDescription
methoddollar | beta | volatility | regression | customregressionHedge methodology.
interval5m | 15m | 1h | 4h | 1d | 1w1hCandle interval.
barsinteger 30–2000720Lookback length.
rationumber (0, 100]—Required with method=custom.

Request

curl -s "https://parallax-zeta-sooty.vercel.app/api/spreads/nvda-amd/hedge?method=beta&interval=4h&bars=540"

Response shape

HedgeEstimate {
  method, label
  ratio: number | null           // null when the method is undefined for this data
  methodology: string
  lookback: { bars, interval, fromMs, toMs }
  correlation, volA, volB
  returnBeta, returnR2, priceBeta, priceR2
  factorBetas: { symbol, a, b } | null
  halfLifeBars: number | null
  adf: { tStat, verdict } | null
  dataQuality: DataQuality
  limitations: string[]
  warnings: string[]
  slug: string
  legs: { long: { symbol, coin, dex, collateral }, short: { … } }
}

GET/api/markets/universe

Market universe

Every perpetual on Hyperliquid's main dex and each HIP-3 dex, discovered from venue metadata at request time: dex, collateral token, margin mode, max leverage, base-tier fees and availability (delisted or at the open-interest cap, with the reason).

30 req / min / IPs-maxage 60 s · server cache 1 minTry it →

Request

curl -s https://parallax-zeta-sooty.vercel.app/api/markets/universe | jq '.assets[] | select(.category == "equity") | {coin, dex, collateral, maxLeverage}'

Response shape

{
  generatedAt: number
  dexes: { name, fullName, collateral, markets }[]
  assets: {
    coin, symbol, name, dex, dexName, category, collateral
    maxLeverage, marginMode: "cross-or-isolated" | "isolated-only"
    szDecimals, unitMultiplier, growthMode, deployerFeeScale
    fees: { taker, maker }        // fractions, HIP-3 scaling applied
    primary: boolean              // the listing slugs resolve to
    delisted, oiCapped, available, unavailableReason
    markPx, change24h, fundingHourly, dayNtlVlm, openInterestUsd
  }[]
  notes: string[]
}

GET/api/markets/funding

Funding opportunities

Main-dex pairs where both legs trade more than $5M a day, ranked by the gap between their current hourly funding rates and oriented so the spread collects it. Only the top 8 get candles (for correlation). Each asset appears in at most two pairs.

30 req / min / IPs-maxage 300 s · server cache 10 minTry it →

Request

curl -s https://parallax-zeta-sooty.vercel.app/api/markets/funding | jq '.opportunities[] | {slug, differentialApr, corr: .summary.analytics.correlation}'

Response shape

{
  generatedAt: number
  criteria: { dex: "main", minVolumeUsd, ranked, candidates, maxAppearancesPerAsset }
  opportunities: {
    slug: string                 // long-short
    long, short: { symbol, coin, fundingHourly, dayNtlVlm }
    differentialApr: number      // (short rate − long rate) × 8,760
    earnAprOnGross: number       // equal-dollar, on gross notional
    summary: SpreadSummary | null
  }[]
  notes: string[]
}

Rate limits

Fixed one-minute windows per client IP and endpoint group. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (seconds). Over the limit you get 429 with Retry-After. Behind the API, Parallax keeps its own calls to Hyperliquid under the venue's weight budget, so a cold cache can be slower than a warm one.

spreads
60 / min
spread
60 / min
hedge
30 / min
universe
30 / min
funding
30 / min

Errors

Errors are JSON with a human-readable message and a stable code.

{ "error": string, "code": "invalid" | "not_found" | "rate_limited" | "unavailable" }

400 invalid       bad interval, bars or method
404 not_found     malformed slug, or a leg is not listed
429 rate_limited  over the per-minute budget
503 unavailable   Hyperliquid did not respond

[ Honesty notes ]

What the data is — and isn't.

Data source
Every number is derived from Hyperliquid's public info API (candles, contexts, funding, order books). Parallax adds no proprietary or synthetic data.
History depth
Hyperliquid keeps only the most recent 5,000 candles per interval — about 208 days of hourly bars or 13.7 years of daily bars. Longer lookbacks are truncated, and dataQuality says so.
Estimates
Hedge ratios, correlations and z-scores are statistics on past prices. They change with the lookback and can break abruptly; every response carries its methodology and limitations.
Funding
Funding settles hourly and the current rate can flip sign at the next settlement. APR figures are the current hourly rate × 8,760, not a forecast.
Costs
Fees are base-tier estimates with HIP-3 deployer scaling. entryCostBps uses the venue's impact prices for a $1,000 order per leg; real slippage depends on the live book.
Freshness
Responses are cached (see each endpoint). Use asOf / generatedAt to judge staleness. If the venue is unreachable you get a 503, never stale numbers presented as live.
Scope
Read-only and unauthenticated. There are no order, account or write endpoints in the public API, and no SLA.