What Is Market Making on Hyperliquid?
Market making is the practice of placing both buy and sell limit orders around the current market price, earning the spread between them. On Hyperliquid, market makers also benefit from the 0.010% maker rebate — you get paid to provide liquidity rather than paying to take it. For high-volume strategies, this rebate can become a significant income stream independent of the spread captured.
Unlike centralized exchanges where market making requires expensive colocation, direct market access, and six-figure minimum balances, Hyperliquid is fully permissionless. Anyone with a funded wallet can start placing limit orders and earning the spread. The barrier to entry is low, but the competition is real — sophisticated bots dominate the order book, and manual market making is rarely profitable.
Start Market Making on Hyperliquid
Use code HOLYGRAIL to sign up and start earning maker rebates today
Join Hyperliquid →How Hyperliquid's Market Making Economics Work
To understand whether market making is profitable for you, you need to account for five components:
- Maker rebate: +0.010% of notional on every filled maker order. This is your base income.
- Spread captured: The difference between your bid and ask prices. If you bid at $73,490 and ask at $73,510 on BTC, and both fill, you capture $20 minus fees.
- Funding rate: If you hold inventory overnight, you either pay or receive funding. This is a major cost or income source for market makers who carry positions.
- Inventory risk: The biggest hidden cost. If you accumulate a long position while market making and the price drops, your inventory loss can dwarf months of spread profits.
- Gas for order placement/cancellation: Hyperliquid charges no gas for trades, but placing and cancelling limit orders uses L1 gas. For high-frequency strategies, this can cost $50-200 per day in Arbitrum gas.
Simple profitability threshold: If your average spread captured + maker rebate exceeds your funding cost + inventory risk premium + gas, you are profitable. Most amateur market makers fail because they underestimate inventory risk.
Basic Market Making Strategy: Fixed Spread
The simplest approach is placing static bid and ask limit orders at a fixed distance from the mid-price. Here is the workflow:
Step 1: Choose a pair. BTC-PERP and ETH-PERP are the safest — highest liquidity, tightest spreads, lowest inventory risk. Avoid low-volume altcoins until you have experience.
Step 2: Set your spread. For BTC, a spread of 0.02-0.05% (roughly $15-35 on current prices) is competitive. Tighter spreads get filled more often but capture less per trade. Wider spreads capture more per fill but may rarely execute.
Step 3: Set your order size. Start with 0.01-0.1 BTC per side. The goal is to turn over your inventory quickly, not to hold large positions.
Step 4: Manage inventory. When your bid fills, you now have a long position. Immediately place a new ask at your target spread above the current price. When your ask fills, you are flat and have captured the spread. The ideal cycle is: bid fills → ask fills → flat with profit → repeat.
Step 5: Refresh stale orders. If the market moves and your orders are more than 0.1% from the mid-price, cancel and replace them. Stale orders are dead orders — they will never fill and you are wasting gas maintaining them.
Advanced Strategy: Dynamic Spread Market Making
Fixed-spread market making works in calm markets but fails during volatility. When price moves rapidly, your fixed-spread orders get picked off — you buy on the way down and sell on the way up, always on the wrong side of the move. Dynamic spread market making adjusts your spread based on market conditions:
- Low volatility: Tighten spreads to 0.02-0.03% — capture more fills in calm conditions
- High volatility: Widen spreads to 0.05-0.10% — protect against adverse selection when price is moving fast
- After large moves: Temporarily widen or pause. After a 2%+ candle, the order book is thin and the risk of being picked off is high
- Funding rate windows: Skew your orders slightly in the direction of funding. If funding is positive (longs pay shorts), bias your quoting toward the bid side to accumulate shorts and collect funding
Implementation requires monitoring volatility indicators like ATR (Average True Range) or a simple rolling standard deviation of 1-minute returns. When the 1-minute volatility exceeds 0.1% for BTC, widen your spread. When it drops below 0.03%, tighten.
Using the Hyperliquid API for Automated Market Making
Manual market making is not viable at scale. You need a bot that can place, cancel, and replace orders in under 100ms. Hyperliquid's WebSocket API provides real-time order book updates and trade execution. Here is the core loop every market making bot needs:
1. Subscribe to the order book: WebSocket subscription to the L2 order book for your target pair.
2. Calculate mid-price: (best bid + best ask) / 2.
3. Calculate your quotes: Bid = mid-price × (1 - spread/2), Ask = mid-price × (1 + spread/2).
4. Place or update orders: If no orders exist or existing orders are stale (too far from mid), cancel old orders and place new ones. Use the batch order endpoint to cancel and place in a single atomic operation.
5. Monitor fills: Track your position. If your bid fills, your position is now long. If your ask fills, your position is now short. The bot should adjust quoting to reduce inventory back toward zero.
6. Inventory management: If your position exceeds your risk limit (e.g., 0.5 BTC), stop quoting on the side that would increase it further. Only quote on the side that reduces your position back toward flat.
The official Hyperliquid Python SDK wraps all of these operations. A basic market making bot can be written in under 200 lines of Python. For production use, consider adding circuit breakers for extreme volatility, rate-limit handling, and a kill switch that cancels all orders if the bot detects abnormal behavior.
Common Market Making Pitfalls
- Adverse selection on news: When major news hits, market makers are the first to lose. Your limit orders become free options for informed traders. Always have a volatility-based pause mechanism.
- Ignoring inventory build-up: A market maker who accumulates a 5 BTC long position during a downtrend loses more on inventory than they earn from the spread. Set hard inventory limits and stick to them.
- Gas cost blindness: On Arbitrum, cancelling and replacing 4 orders every 2 seconds costs roughly $30-60 per day. If your spread profit is $10 per day, you are losing money. Batch your order updates and use the lowest gas price that fills within your time window.
- Over-optimizing for calm markets: The strategy that prints money in a sideways market gets destroyed in a trend. Test your bot across at least 30 days of historical data including both calm and volatile periods.
- Neglecting the funding rate: If you hold a position through funding payments, the funding rate is either a cost or a rebate. Market makers who systematically accumulate positions in the direction of funding payments can earn an extra 5-15% APR on top of the spread.
Build Your Market Making Bot on Hyperliquid
Sign up with code HOLYGRAIL — 0.010% maker rebates, sub-second execution
Start Market Making →