How to build a Hyperliquid trading bot, with or without code
Ways to run a Hyperliquid trading bot: the Python SDK, API wallets, open-source tools and no-code builders, plus how to backtest a crypto strategy honestly.
8 min read
Pairs and baskets
ScaleClients trade one market against another, or a weighted basket long and short, with every leg sent together.
Rolling hedge ratio over 120 candles, beta-neutral.
Screen drawn with example data and a fictional brand.
Pairs and baskets turns your terminal into a crypto pairs trading platform. A pair trade follows the z-score of the spread between two Hyperliquid markets, and a basket holds 2 to 12 markets with target weights. Both come with the Scale plan.
It is for clients who think in relative value: one market looks cheap next to another, or a theme deserves a long and short book rather than a single bet. Doing that by hand means placing several orders and hoping they all fill. Here each rebalance goes out as one exchange action, and if a leg does not fill, the others are unwound.
Pairs and baskets run on the same engine as Strategy Studio, with a paper test on history and a monitor for every leg. Pre-trade checks on leverage, margin and net exposure run before anything is sent.
Entry, exit and stop levels set on the z-score of the spread
Dollar-neutral or beta-neutral pair sizing
Every leg sent in one exchange action, unwound if a leg does not fill
A paper test on history, and pre-trade checks for leverage, margin and net exposure
Rolling hedge ratio from 10 to 500 candles
Rebalance by interval, by drift, or both
A monitor with every leg, every decision and its z-score
Pairs and baskets come with the Scale plan, next to Strategy Studio and the rest of the suite.
For a pair, pick two markets, a fixed or rolling hedge ratio and z-score levels for entry, exit and stop. For a basket, pick 2 to 12 markets, long or short, with weights and a rebalance rule.
Run a paper test on history first. Once it runs, the monitor shows every leg, every decision and the z-score behind it.
Ways to run a Hyperliquid trading bot: the Python SDK, API wallets, open-source tools and no-code builders, plus how to backtest a crypto strategy honestly.
8 min read
Isolated vs cross margin with worked numbers: how each mode handles losses, how Hyperliquid liquidates positions and how to choose for each trade.
9 min read
How a funding rate works on perpetual futures: who pays whom, how Hyperliquid calculates it, a worked example in dollars, and what it costs to hold.
8 min read