- Mark
- …
- Ariadne closes at
- …
- Liquidation
- …
Reading Hyperliquid…
Ariadne
Ariadne watches your Hyperliquid positions every 3 seconds and closes them at your line, before the liquidation engine takes everything.
Live BTC mark from Hyperliquid, last 2 hours. Lines for a demo 10× long.
Reading Hyperliquid…
What Ariadne sees, every 3 seconds.
Real Hyperliquid BTC candles from 2 to 5 December. The same 10× long with $1,000 of margin, twice: once left alone, once with Ariadne.
$1,000
With Ariadne
$1,000
Left alone
Each armed account is read straight from Hyperliquid every 3 seconds: size, mark and Hyperliquid’s own liquidation price.
Ariadne trades through a Hyperliquid agent wallet. Agents can place orders. They cannot withdraw, transfer or approve anything.
Every order can only make a position smaller. It never opens one, adds to one or flips one.
An isolated position with free collateral gets margin before anything is sold.
Disarm here and the key is deleted. Or revoke the agent in Hyperliquid, under API.
No fee and no builder code.
Connect a wallet, set your line, approve an agent. Ariadne does the watching.
One signature approves an agent that can trade but never withdraw. Nothing is signed or sent before that.
Ariadne reads one clearinghouseState per armed account and measures the distance, |mark − liquidation| ÷ mark. Above your buffer (default 6%), nothing happens.
Inside it, an isolated position with free collateral gets updateIsolatedMargin: enough to put the line 7% away, capped by what is free. Otherwise Ariadne sends a reduce-only IOC order for the whole position, limit at the mark minus 1% for a long, plus 1% for a short. If you chose a 50% or 25% step, it sells that share instead.
Then a 20 second cooldown per position. Part of it left and still inside the buffer, or an order that did not fill? It acts again. The position is gone? Ariadne stops guarding it.
Ariadne acts on Hyperliquid’s own liquidationPx. Its own formula only shows what a cut or a top-up would do.
On 6 Dec we read live public accounts from Hyperliquid’s leaderboard. On two classic cross accounts, 31 positions came out at exactly Hyperliquid’s number. Every isolated position we found (six, on five accounts) matched exactly too. Unified accounts margin with their spot USDC: there the formula landed within 0.5% on 12 of 26 positions and up to 10% off on the rest, and accounts that borrow are further off.
liq = price − side × margin_available ÷ size ÷ (1 − l × side)
l is 1 ÷ maintenance leverage, which is twice the asset’s max leverage: 1.25% for BTC at 40×.
The signing code reproduces the official Python SDK’s test vectors byte for byte. Live, a throwaway wallet signed approveAgent, a throwaway agent signed an order, and Hyperliquid named both recovered addresses: exactly the keys we made.
Any EVM wallet. The approval is signed on whatever chain your wallet is on: Hyperliquid accepts the chain id inside the signature. No gas, no transaction.
No. Every order is reduce-only, so it can only make a position smaller. It never withdraws or moves funds between accounts.
The next check sees it gone, logs it and stops guarding that coin. With one rule for all positions, Ariadne stops when none are left.
Disarm here: the server deletes the agent key at once. Then revoke the agent in Hyperliquid under API. Revoking alone also stops it: the next refused order disarms the guard.
Because the real 3–5 Dec crash says so. A 10× BTC long with $1,000 of margin, closed at the line, kept $691. With 25% steps it kept $16, because each step sold lower. Left alone, it kept $114 at best. You can still pick a 50% or 25% step, a buffer from 1% to 50% and a cooldown from 5 seconds to 10 minutes.
Free. One signature. Revoke anytime.