All articles
Hyperliquid·May 28, 2026·6 min read

Hyperliquid vs GMX v2: Order Book vs Pooled Liquidity for Perps

Hyperliquid's CLOB vs GMX v2's GM pools: how slippage, funding, and adverse selection diverge for large or automated perp orders.

A market order on Hyperliquid walks a real order book: it eats resting limit orders level by level until it's filled, and the price impact you pay is whatever liquidity happens to be sitting there at that moment. A market order on GMX v2 doesn't touch anyone else's order at all. It prices against a pooled vault using a deterministic price-impact formula based on how far the trade pushes that pool's long/short open interest out of balance. Same instrument, same directional bet, completely different cost model. That distinction matters a lot more once you're running real size or running a bot that fires hundreds of orders a day.

How each venue actually fills an order

Hyperliquid runs HyperCore, an on-chain CLOB matched by validators under a consensus layer fast enough to keep spreads tight without market makers getting picked off constantly. Every order, market or limit, interacts with real resting liquidity from other traders and market makers. If you want the mechanics behind that speed, the write-up on sub-second finality under HyperBFT covers it, and the breakdown of HyperCore vs HyperEVM's dual architecture explains how the order book layer sits next to the general-purpose EVM chain.

GMX v2 has no order book. Every position opens against a GM pool, an isolated vault holding a long-side token, a short-side token (usually USDC), and its own open-interest caps. When you long ETH-USD you're not trading against another trader, you're borrowing synthetic exposure from the pool, and the pool's LPs are your counterparty. Price comes from a Chainlink oracle feed, not from where the last trade printed.

Slippage: order book depth vs a pricing formula

On Hyperliquid, slippage is a measurement, not a formula. A $200k market buy against a $2M-deep book might move price 3-4 bps; the same order against a thin book at 3am UTC could move it 40+ bps. You check the book before you send the order, you don't compute the fill in advance.

On GMX v2, slippage is a formula. The core mechanic since v2 charges a penalty on trades that widen the pool's OI imbalance and pays a rebate on trades that shrink it:

imbalanceBefore = abs(longOI - shortOI)
imbalanceAfter  = abs(longOI - shortOI ± tradeSize)
priceImpactUsd  = impactFactor * (imbalanceAfter^exponent - imbalanceBefore^exponent)

Roughly: if longs already dominate a pool and you open another long, you pay a widening premium, often 3-15 bps for a mid-size clip, more if you're large relative to that pool's caps. Open a short into an over-long pool and you can get filled at negative impact, better than mid. This is public and computable ahead of time by calling the Reader contract's execution-price view function before you send the transaction, no book to walk.

For automated flow, that changes what your execution logic needs to track. A Hyperliquid perps bot needs live order-book depth and should size clips to what's actually resting at each level. A bot built for GMX v2 needs the opposite: track pool OI skew and route toward whichever side is currently earning a rebate, because that's free edge sitting directly in the contract's math.

Funding: market-wide premium vs pool-isolated skew

Hyperliquid funding behaves like traditional perp funding: a periodic, capped payment tied to the premium between mark and index price, driven by aggregate positioning across the entire book. It moves with sentiment across all participants and can be arbed directly against spot, or against a rival venue's own mechanics, which is exactly the comparison covered in Hyperliquid vs dYdX v4's architecture.

GMX v2 funding is per-pool and skew-driven, calculated from the OI imbalance inside that specific GM pool, paid between longs and shorts rather than from LPs. It can spike hard when one side gets crowded, because there's no broader market to arb it against; it's isolated to that pool's own supply and demand. This isolation is exactly what funding-arbitrage desks exploit across venues, and it's the core logic behind a Hyperliquid funding arb setup that hedges a GMX skew position against a flatter Hyperliquid book.

Adverse selection: who actually eats it

This is the part people underrate. On Hyperliquid, adverse selection lands on market makers. If you're quoting the book and someone with better information trades against you, you get picked off, and that risk gets priced into your spread. Running market-making on Hyperliquid means actively managing that inventory risk tick by tick; it's the entire job, not a side concern.

On GMX v2, adverse selection lands on GM pool LPs. There's no market maker standing between you and the pool. LPs passively hold the other side of aggregate positioning, so when informed flow shows up, LPs eat it directly. GMX has bolted on mitigations over time, position caps, steeper price impact on imbalance, borrowing fees scaled to utilization, specifically because passive LPs can't reprice the way an active quoting engine can. If you're providing to a GM pool, you're underwriting informed traders whether you priced that risk in or not.

Liquidations

Both venues liquidate the same way conceptually: a margin ratio breach triggers closure. The mechanics differ. Hyperliquid liquidations get absorbed by the book, or by a backstop vault if the book can't hold the size, so cascade risk in fast markets is worth modeling explicitly. GMX v2 liquidations flow straight into the GM pool, meaning a bad cascade shows up directly as LP losses. Either way, a liquidation engine tuned to the venue's specific absorption path, feeding into a liquidation bot built for Hyperliquid, is what separates catching a clean fill from eating slippage on a stale price.

Comparison table

Dimension Hyperliquid (HyperCore CLOB) GMX v2 (GM pools)
Price discovery Order book matching Oracle price + impact formula
Slippage source Live depth, empirical Deterministic OI-imbalance formula
Counterparty Other traders / market makers Pool LPs
Funding driver Aggregate mark/index premium Per-pool long/short OI skew
Adverse selection lands on Market makers LPs
Best fill for large orders Deep book, off-peak hours Rebalancing side of a skewed pool
Bot design need Live depth feed, level-aware sizing OI/impact state, simpler pricing
Liquidation absorption Book / backstop vault Directly into GM pool

Which to pick when

If you're running automated flow that needs tight, competitive execution, and you can build (or buy) real order-book logic, inventory tracking, level-aware sizing, latency-sensitive quoting, Hyperliquid gives you better fills at scale and a funding rate you can actually arb against other venues. That's the right call for market-making, high-frequency directional flow, or anything where basis trading against spot matters.

If you want execution cost you can compute before you send the transaction, and you're fine being on the LP side of the trade, or exploiting skew from the taker side, GMX v2's formula-driven pricing is genuinely easier to build and backtest against, because the price-impact function is public and static rather than a live snapshot you have to poll. It's also the better venue for taking the other side of crowded positioning: shorting into an over-long pool during a rally can net negative impact plus favorable funding at the same time.

For teams running real size, the practical setup is usually both: Hyperliquid for the core directional and market-making book, GMX v2 as a secondary venue for skew exploitation and cross-venue funding arb, with fills, funding accrual and pool imbalance all tracked side by side on one trading dashboard so the arb between them is tradeable instead of theoretical.

Want execution logic built or audited around either mechanism? Talk to us about Hyperliquid market-making infrastructure.

Need a bot like this built?

We design, build and run trading bots on Solana, Hyperliquid and Polymarket.

Start a project
#Hyperliquid#GMX v2#perps#market microstructure#trading bots