Hyperliquid Pairs Trading Strategy: 365-Day Test (2026)
Pairs trading on Hyperliquid tested with real data: z-score rules on ETH/BTC, SOL/BTC, SOL/ETH and HYPE pairs, fees and funding included. Only 3 of 15 versions made money.
The short version: pairs trading means going long one coin and short another with equal dollar size, betting that the price ratio between them returns to normal. We tested a standard z-score version on Hyperliquid perps with public data (4-hour candles, 365 days to 2 December 2026, 08:06 UTC, taker fees of 0.045% per fill and hourly funding). Only 3 of 15 versions made money, and all three were on ETH/BTC (+10.4% to +14.3%, max drawdown 10.5–13.1%). SOL/BTC and SOL/ETH lost 5.9% to 25.4%. Pairs with HYPE lost 53.9% to 81.9%, because HYPE rose about 208% against BTC and 286% against SOL during the year, so "the spread will come back" never happened. Correlation is not enough: what matters is whether the ratio actually mean-reverts.
Pairs trading is one of the oldest market-neutral strategies. Instead of guessing whether the market goes up or down, you trade the relationship between two assets that usually move together. Hyperliquid is a natural venue for it: every major coin trades as a perpetual with the same USDC collateral, shorting is as easy as going long, and both legs sit in one cross-margin account. This guide explains how the strategy works, shows what a simple version would have done over the last year on Hyperliquid, and lists what you need to check before running it.
What pairs trading is
Take two coins A and B whose prices tend to move together, for example ETH and BTC. Look at the ratio A/B (ETH priced in BTC). If the ratio falls far below its recent average, ETH is "cheap" relative to BTC: you buy ETH and short the same dollar amount of BTC. If the ratio rises far above its average, you do the opposite. When the ratio comes back to the average, you close both legs.
Because one leg is long and the other short, a market-wide move mostly cancels out. If everything drops 10%, the ETH long loses and the BTC short gains roughly the same amount. Your profit or loss comes from the relative move. That is the appeal, and also the risk: if the ratio keeps trending instead of reverting, both legs can lose at once relative to your plan, and there is no market rally to rescue you.
Pairs trading is a cousin of mean reversion (it bets on a return to the average) and of correlation hedging (it uses one coin to offset another). The difference is that the hedge is the whole point: you are not hedging a view, the spread itself is the trade.
How the z-score signal works
The usual way to define "far from the average" is a z-score of the log price ratio:
- Compute the spread
s = ln(price A / price B)on each candle close. - Take the mean and standard deviation of the spread over the previous N candles.
z = (s − mean) / standard deviation. A z of −2 means the ratio is two standard deviations below its recent average.- Enter long A / short B when z ≤ −2; enter short A / long B when z ≥ +2.
- Exit when z crosses back through 0. Optionally, stop out if |z| reaches 4, which says the relationship may have broken.
The window N decides what "normal" means. A short window (30 four-hour candles, 5 days) reacts quickly and trades often. A long window (90 candles, 15 days) trades less and waits for bigger dislocations.
Our test: 5 pairs, 3 settings, 365 days
We pulled 4-hour candles and hourly funding for BTC, ETH, SOL and HYPE from Hyperliquid's public API and ran the rules above on five pairs. Assumptions, so you can judge the numbers:
- Each leg is opened at 1x the current account equity (for $10,000 equity: $10,000 long and $10,000 short). Positions are not rebalanced while open.
- Signals use only past candles and are executed at the 4-hour close. Every fill pays the tier-0 taker fee of 0.045%, so a round trip costs 4 × 0.045% = 0.18% of one leg's notional.
- Funding is charged hourly on both legs: the long leg pays positive funding, the short leg receives it.
- No slippage, no leverage effects and no liquidation are modelled. Real results would be somewhat worse.
Last closes at the snapshot: BTC $60,165, ETH $1,676.50, SOL $72.78, HYPE $67.32.
How related the pairs were
| Pair | Correlation of 4h returns | Ratio change in 365 days | Spread half-life |
|---|---|---|---|
| ETH/BTC | 0.89 | −15.8% | 35 days |
| SOL/BTC | 0.85 | −20.3% | 31 days |
| SOL/ETH | 0.86 | −5.3% | 14 days |
| HYPE/BTC | 0.54 | +207.9% | 180 days |
| HYPE/SOL | 0.56 | +286.1% | 161 days |
The half-life is a rough estimate of how long it takes a gap in the spread to close by half, from a simple regression on the whole year. Short half-lives are good for pairs trading; 160–180 days means the spread behaved more like a trend than like a rubber band.
Results
| Pair | N=30, no stop | N=90, no stop | N=90, stop at |z| 4 | Max drawdown (range) |
|---|---|---|---|---|
| ETH/BTC | +11.6% | +10.4% | +14.3% | 10.5–13.1% |
| SOL/BTC | −16.0% | −22.8% | −19.6% | 28.4–37.1% |
| SOL/ETH | −25.4% | −5.9% | −10.4% | 27.1–39.2% |
| HYPE/BTC | −80.7% | −68.6% | −59.3% | 79.3–84.5% |
| HYPE/SOL | −81.9% | −72.3% | −53.9% | 82.9–93.8% |
Returns are on starting equity after fees and funding. The full output, including trade counts and win rates, is at the end of the article.
What the numbers say
1. High win rates hide the real risk
Most versions won on more than half of their trades: 71% on ETH/BTC with N=30, 66% on SOL/BTC, 63% on SOL/ETH, 55–60% on the HYPE pairs. Yet 12 of 15 lost money. The typical pairs trade makes a small gain when the spread snaps back and takes a large loss when it does not. The worst single trade was −59.2% on HYPE/BTC and −64.4% on HYPE/SOL (N=30, no stop), versus best trades of +11.2% and +6.5%. If you track only your win rate you will feel fine until one trade wipes out months of gains. Look at profit factor and drawdown instead.
2. Correlation is not the same as mean reversion
SOL/BTC had a 0.85 correlation, almost as high as ETH/BTC, and still lost money in every setting. Correlation measures whether two coins move in the same direction on the same day; it says nothing about whether the ratio drifts. SOL lost about 20% against BTC over the year, and the strategy kept buying SOL "cheap" on the way down. What you need is a spread that keeps returning to its average, which is what the half-life (and formal tests such as cointegration tests) try to measure.
3. A trending spread destroys the strategy
HYPE tripled against BTC and almost quadrupled against SOL during the period. Every time HYPE looked "expensive" at +2 standard deviations, the strategy shorted it, and it kept rising. This is the textbook failure of pairs trading: the model assumes the relationship is stable, and a coin with its own story (buybacks, listings, a narrative) breaks it. Do not pair a coin that is re-rating with one that is not.
4. A z-score stop helped more often than not
With N=90, adding a stop at |z| ≥ 4 improved the result on 4 of 5 pairs (ETH/BTC from +10.4% to +14.3%, HYPE/SOL from −72.3% to −53.9%) and made SOL/ETH worse (−5.9% to −10.4%). The stop did not turn a bad pair into a good one. It limits the damage when a relationship breaks; it does not create an edge.
5. Fees add up because there are four fills
Each round trip pays four taker fees on one leg's notional. With N=30 the strategy traded 56–66 times a year and fees cost 3.8% to 12.4% of starting equity; with N=90 it traded 19–26 times and fees cost 1.9% to 5.0%. Funding was small in this test and slightly in the strategy's favour: every version received a little more than it paid, between 0.2% and 2.3% of starting equity, because the long leg's payments and the short leg's receipts largely offset. Using limit orders at the maker rate of 0.015% would cut fees by two thirds, at the risk of not getting both legs filled at once. See the Hyperliquid fees guide and the funding rate guide.
A worked example: one ETH/BTC trade
Illustrative arithmetic at the snapshot prices (not a trade we recommend):
- The ETH/BTC z-score drops to −2. You buy $10,000 of ETH (about 5.965 ETH at $1,676.50) and short $10,000 of BTC (about 0.1662 BTC at $60,165).
- Entry fees: 2 × 0.045% × $10,000 = $9. Exit fees: another $9 if the notional is still about $10,000. Round trip: about $18.
- If ETH then gains 2% more than BTC (for example ETH +1%, BTC −1%), the long earns about $100 and the short about $100: roughly $200 before costs, $182 after fees, plus or minus funding.
- If instead ETH keeps falling against BTC by 5%, you lose about $500 plus fees, and the z-score is now even "cheaper", which tempts you to add. That is exactly how the losing trades in the test happened.
Running it on Hyperliquid: practical points
- Margin mode. In cross margin, the profit on one leg supports the other, which is what you want for a hedged pair. In isolated margin each leg can be liquidated on its own even if the pair as a whole is fine. Read isolated vs cross margin and the liquidation guide.
- Leverage. A dollar-neutral pair still has two full-size positions. At 1x per leg you need margin for both; with leverage, a sharp move in one leg can trigger liquidation before the spread reverts.
- Execution. The two legs are separate orders. Place them as close together as possible, and use liquid pairs: depth on HYPE and smaller coins is much thinner than on BTC and ETH.
- Separate accounts. Running the strategy in a subaccount keeps its PnL, fees and funding apart from your other trades.
- Automation. Z-scores need regular recalculation. The Hyperliquid API in Python and the trading bots guide show how to read candles and place orders; historical data explains where to get longer history.
Track both legs as one trade with Hyperfolio
The hardest part of pairs trading in practice is seeing the real result. The exchange shows two separate positions, each with its own unrealized PnL, fees and funding. Hyperfolio is a free, read-only tracker for Hyperliquid wallets: paste your address (no API keys, no wallet connection) and see your open perps, PnL with fees and funding, and your history across wallets and subaccounts in one place, so you can tell whether the pair is working or whether one leg is quietly eating the other. It installs as a PWA on your phone. If you do not have a Hyperliquid account yet, the referral code HYPERFOLIO gives you 4% off trading fees, which matters for a strategy with four fills per trade.
Related reading: real PnL after fees and funding, trend following on Hyperliquid, funding arbitrage and tracking multiple wallets.
FAQ
Is pairs trading profitable on Hyperliquid?
Sometimes. In our 365-day test only ETH/BTC made money (+10.4% to +14.3%); 12 of 15 versions lost, some heavily. The result depends almost entirely on picking a pair whose ratio actually mean-reverts.
Which pairs work best for pairs trading in crypto?
Pairs with a stable relationship and a short spread half-life. In our data ETH/BTC (35 days) did best. Pairs with a coin that is re-rating, such as HYPE over the last year, did worst. Past behaviour can change, so recheck regularly.
Is pairs trading market neutral?
It is dollar neutral, which removes most of the broad market move, but not risk-free. Coins have different volatility, so an equal-dollar pair can still lean one way, and the spread itself can trend for months.
What z-score should I use to enter?
±2 is the common starting point and the one we tested. Higher thresholds trade less and wait for bigger gaps; lower ones trade more and pay more fees. No threshold fixes a pair that is not mean-reverting.
Do I need a stop loss in pairs trading?
Our test suggests yes: a stop at |z| ≥ 4 improved 4 of 5 pairs with a 90-candle window. It caps losses when a relationship breaks, but it does not make a losing pair profitable.
How much do fees cost for pairs trading on Hyperliquid?
Four fills per round trip: at the tier-0 taker rate that is 0.18% of one leg's notional, $18 on $10,000 per leg. Maker orders, higher volume tiers, HYPE staking and a referral code reduce it.
Reproduce the test
Python 3 with requests; no API key needed. The script always uses the latest 365 days, so the numbers change every time you run it.
#!/usr/bin/env python3
"""Pairs trading on Hyperliquid with public data: z-score of the log price ratio of two perps on 4h candles,
last 365 days, with hourly funding. Dollar-neutral: long A / short B (or the reverse) with equal notional per leg,
each leg sized at 1x current equity when the trade opens. Taker fee 0.045% per fill (4 fills per round trip).
Entry when z <= -E (long A, short B) or z >= +E (short A, long B); exit when z crosses back through 0;
optional stop when |z| >= S. z uses the previous N bars only (no look-ahead); signals on bar close."""
import time, math, requests, statistics as st
from datetime import datetime, timezone
HL = "https://api.hyperliquid.xyz/info"
def info(body):
for _ in range(8):
try:
r = requests.post(HL, json=body, timeout=20).json()
if r: return r
except Exception: pass
time.sleep(6)
return []
FEE = 0.00045; HOUR = 3_600_000; BAR = 4*HOUR; DAY = 24*HOUR
now = datetime.now(timezone.utc); end_ms = int(now.timestamp()*1000); start_ms = end_ms - 365*DAY
print("snapshot", now.strftime("%Y-%m-%d %H:%M UTC"), "| 365 days, 4h candles + hourly funding | taker 0.045%/fill, each leg 1x equity")
def funding(coin):
out, t = {}, start_ms
while t < end_ms:
page = info({"type": "fundingHistory", "coin": coin, "startTime": t})
if not page: break
for p in page:
b = (int(p["time"]) // BAR) * BAR
out[b] = out.get(b, 0.0) + float(p["fundingRate"])
nt = int(page[-1]["time"]) + 1
if nt <= t or len(page) < 2: break
t = nt
return out
COINS = ["BTC", "ETH", "SOL", "HYPE"]
px, fund = {}, {}
for coin in COINS:
bars = info({"type": "candleSnapshot", "req": {"coin": coin, "interval": "4h", "startTime": start_ms - 100*BAR, "endTime": end_ms}})
px[coin] = {int(b["t"]): float(b["c"]) for b in bars if int(b["t"]) + BAR <= end_ms}
fund[coin] = funding(coin)
print(f"{coin}: 4h bars {len(px[coin])}, funding buckets {len(fund[coin])}, last close {list(px[coin].values())[-1]:,.6g}")
def run(a, b, N, E, S=None):
ts = sorted(set(px[a]) & set(px[b]))
pa = [px[a][t] for t in ts]; pb = [px[b][t] for t in ts]
s = [math.log(pa[i]/pb[i]) for i in range(len(ts))]
i0 = next(k for k in range(len(ts)) if ts[k] >= start_ms)
eq, peak, mdd = 1.0, 1.0, 0.0; pos = 0; qa = qb = 0.0; fees = fnd = 0.0
trades = []; eq_in = None; stops = 0; bars_in = 0
for i in range(i0, len(ts)):
if pos:
eq += pos*(qa*(pa[i]-pa[i-1]) - qb*(pb[i]-pb[i-1]))
fa = fund[a].get(ts[i], 0.0)*pos*qa*pa[i]; fb = -fund[b].get(ts[i], 0.0)*pos*qb*pb[i]
eq -= fa + fb; fnd += fa + fb; bars_in += 1
peak = max(peak, eq); mdd = max(mdd, 1-eq/peak)
if i == len(ts)-1: break
w = s[i-N:i]; m = st.mean(w); sd = st.pstdev(w)
z = (s[i]-m)/sd if sd else 0.0
want = pos
if pos == 1 and (z >= 0 or (S and z <= -S)): want = 0; stops += bool(S and z <= -S)
elif pos == -1 and (z <= 0 or (S and z >= S)): want = 0; stops += bool(S and z >= S)
if pos == 0:
if z <= -E: want = 1
elif z >= E: want = -1
if want != pos:
if pos:
c = FEE*(qa*pa[i] + qb*pb[i]); eq -= c; fees += c
trades.append(eq/eq_in-1); pos = 0
if want:
qa, qb = eq/pa[i], eq/pb[i]
c = FEE*2*eq; eq_in = eq; eq -= c; fees += c; pos = want
if pos: trades.append(eq/eq_in-1)
wins = [x for x in trades if x > 0]
return dict(ret=eq-1, mdd=mdd, n=len(trades), win=len(wins)/len(trades) if trades else 0, fees=fees, fund=fnd,
best=max(trades) if trades else 0, worst=min(trades) if trades else 0, stops=stops, inpos=bars_in/(len(ts)-i0))
PAIRS = [("ETH","BTC"), ("SOL","BTC"), ("SOL","ETH"), ("HYPE","BTC"), ("HYPE","SOL")]
CONFIGS = [(30, 2.0, None), (90, 2.0, None), (90, 2.0, 4.0)]
for a, b in PAIRS:
ts = sorted(t for t in set(px[a]) & set(px[b]) if t >= start_ms)
ra = [px[a][ts[i]]/px[a][ts[i-1]]-1 for i in range(1, len(ts))]; rb = [px[b][ts[i]]/px[b][ts[i-1]]-1 for i in range(1, len(ts))]
corr = st.correlation(ra, rb)
s = [math.log(px[a][t]/px[b][t]) for t in ts]
ds = [s[i]-s[i-1] for i in range(1, len(s))]; lag = s[:-1]; ml = st.mean(lag); md = st.mean(ds)
beta = sum((lag[i]-ml)*(ds[i]-md) for i in range(len(ds))) / sum((x-ml)**2 for x in lag)
hl = -math.log(2)/math.log(1+beta)*4/24 if -1 < beta < 0 else float("inf")
ratio0 = px[a][ts[0]]/px[b][ts[0]]; ratio1 = px[a][ts[-1]]/px[b][ts[-1]]
print(f"\n{a}/{b}: 4h return correlation {corr:.2f} | ratio {ratio0:.6g} -> {ratio1:.6g} ({(ratio1/ratio0-1)*100:+.1f}%) | spread half-life {hl:.0f} days")
for N, E, S in CONFIGS:
r = run(a, b, N, E, S)
print(f" N={N:<3} entry |z|>={E} {'stop |z|>='+str(S) if S else 'no stop '}: return {r['ret']*100:+6.1f}% maxDD {r['mdd']*100:5.1f}% trades {r['n']:3d} win {r['win']*100:4.0f}% "
f"best {r['best']*100:+5.1f}% worst {r['worst']*100:+6.1f}% stops {r['stops']} | fees {r['fees']*100:4.1f}% funding cost {r['fund']*100:+5.1f}% | in market {r['inpos']*100:3.0f}%")
Output at the snapshot time ("funding cost" is net funding paid as a share of starting equity; negative means received):
snapshot 2026-12-02 08:06 UTC | 365 days, 4h candles + hourly funding | taker 0.045%/fill, each leg 1x equity
BTC: 4h bars 2290, funding buckets 2191, last close 60,165
ETH: 4h bars 2290, funding buckets 2191, last close 1,676.5
SOL: 4h bars 2290, funding buckets 2191, last close 72.782
HYPE: 4h bars 2290, funding buckets 2191, last close 67.319
ETH/BTC: 4h return correlation 0.89 | ratio 0.0330903 -> 0.027865 (-15.8%) | spread half-life 35 days
N=30 entry |z|>=2.0 no stop : return +11.6% maxDD 12.8% trades 66 win 71% best +3.4% worst -6.8% stops 0 | fees 12.4% funding cost -0.6% | in market 55%
N=90 entry |z|>=2.0 no stop : return +10.4% maxDD 13.1% trades 26 win 73% best +4.2% worst -7.9% stops 0 | fees 5.0% funding cost -0.4% | in market 65%
N=90 entry |z|>=2.0 stop |z|>=4.0: return +14.3% maxDD 10.5% trades 41 win 54% best +7.2% worst -7.9% stops 15 | fees 8.0% funding cost -0.3% | in market 64%
SOL/BTC: 4h return correlation 0.85 | ratio 0.00151707 -> 0.00120971 (-20.3%) | spread half-life 31 days
N=30 entry |z|>=2.0 no stop : return -16.0% maxDD 37.1% trades 59 win 66% best +4.1% worst -10.2% stops 0 | fees 10.7% funding cost -1.7% | in market 64%
N=90 entry |z|>=2.0 no stop : return -22.8% maxDD 29.7% trades 19 win 42% best +4.6% worst -10.6% stops 0 | fees 3.2% funding cost -1.3% | in market 67%
N=90 entry |z|>=2.0 stop |z|>=4.0: return -19.6% maxDD 28.4% trades 26 win 46% best +6.3% worst -10.6% stops 7 | fees 4.4% funding cost -1.3% | in market 67%
SOL/ETH: 4h return correlation 0.86 | ratio 0.0458464 -> 0.0434131 (-5.3%) | spread half-life 14 days
N=30 entry |z|>=2.0 no stop : return -25.4% maxDD 39.2% trades 62 win 63% best +4.6% worst -11.8% stops 0 | fees 10.1% funding cost -1.3% | in market 62%
N=90 entry |z|>=2.0 no stop : return -5.9% maxDD 27.1% trades 25 win 60% best +7.3% worst -9.1% stops 0 | fees 4.5% funding cost -1.2% | in market 63%
N=90 entry |z|>=2.0 stop |z|>=4.0: return -10.4% maxDD 28.0% trades 34 win 53% best +7.3% worst -9.1% stops 9 | fees 6.0% funding cost -1.1% | in market 62%
HYPE/BTC: 4h return correlation 0.54 | ratio 0.000363447 -> 0.00111891 (+207.9%) | spread half-life 180 days
N=30 entry |z|>=2.0 no stop : return -80.7% maxDD 84.5% trades 56 win 55% best +11.2% worst -59.2% stops 0 | fees 3.8% funding cost -0.2% | in market 61%
N=90 entry |z|>=2.0 no stop : return -68.6% maxDD 84.1% trades 24 win 58% best +10.6% worst -45.2% stops 0 | fees 2.3% funding cost -0.8% | in market 67%
N=90 entry |z|>=2.0 stop |z|>=4.0: return -59.3% maxDD 79.3% trades 33 win 45% best +14.3% worst -44.4% stops 9 | fees 3.7% funding cost -0.7% | in market 67%
HYPE/SOL: 4h return correlation 0.56 | ratio 0.239572 -> 0.92494 (+286.1%) | spread half-life 161 days
N=30 entry |z|>=2.0 no stop : return -81.9% maxDD 87.8% trades 57 win 60% best +6.5% worst -64.4% stops 0 | fees 4.0% funding cost -1.2% | in market 63%
N=90 entry |z|>=2.0 no stop : return -72.3% maxDD 93.8% trades 22 win 59% best +9.2% worst -65.3% stops 0 | fees 1.9% funding cost -2.3% | in market 53%
N=90 entry |z|>=2.0 stop |z|>=4.0: return -53.9% maxDD 82.9% trades 33 win 48% best +10.0% worst -44.1% stops 11 | fees 4.0% funding cost -2.3% | in market 52%
This article is educational and not financial advice. A single year of data, no slippage and simple rules: real results will differ.
Try Hyperfolio for free
Track your Hyperliquid portfolio in real time with PnL, Smart Money, Markets, Perp Calculator, multi-venue portfolio and push alerts.
HYPERLIQUID
-4% feesTrade on Hyperliquid · 4% off fees
Hyperfolio is an independent app, free to use with no subscription. We're funded by Hyperliquid referrals, ad space and donations; we truly appreciate you trading through our link.
Free for you · keeps Hyperfolio running
Related articles
Hyperliquid Scalping Strategy: Fees & Win Rate (2026)
Can you scalp profitably on Hyperliquid? Real round-trip costs at tier-0 fees, live spreads and depth, 1-minute volatility and a baseline bracket test on BTC, ETH, SOL and HYPE (snapshot 2026-12-01).
GuideHyperliquid Momentum Strategy: Rotation Backtest (2026)
Does crypto momentum work on Hyperliquid? A 365-day backtest of a weekly rotation across 20 high-volume perps: buy the top 3 (long-only) or long top 3 / short bottom 3, with 7, 28 and 90-day lookbacks, real fees and funding (snapshot 2026-11-30).
GuideHyperliquid Breakout Trading Strategy: Donchian Backtest (2026)
Do breakout strategies work on Hyperliquid? A 365-day backtest of Turtle-style Donchian channel breakouts (20/10 and 55/20) on BTC, ETH, SOL and HYPE, 4h and daily, long/short and long-only, with real fees and funding (snapshot 2026-11-29).
GuideHyperliquid Portfolio Rebalancing: Calendar vs Threshold Backtest
Does rebalancing a crypto portfolio pay off? A 365-day Hyperliquid backtest of buy-and-hold vs monthly, weekly and 5/10-point threshold rebalancing for BTC, ETH, SOL, HYPE and USDC portfolios, with real spot fees (snapshot 2026-11-28).
GuideHyperliquid Mean Reversion Strategy: RSI & Bollinger Backtest
Does mean reversion work on Hyperliquid? A 365-day backtest of RSI(14), RSI(2) and Bollinger Band (20, 2) rules on BTC, ETH, SOL and HYPE 4h candles, long/short and long-only, with real fees and funding (snapshot 2026-11-27).
GuideHyperliquid Trend Following Strategy: MA Crossover Backtest
Does trend following work on Hyperliquid? A 365-day backtest of SMA 10/30, 20/50 and 50/200 crossovers on BTC, ETH, SOL and HYPE 4h candles, long/short and long-only, with real fees and funding (snapshot 2026-11-26).