Ariadne

Out before liquidation.

Ariadne watches your Hyperliquid positions every 3 seconds and closes them at your line, before the liquidation engine takes everything.

Watch the 3 Dec replay

Live BTC mark from Hyperliquid, last 2 hours. Lines for a demo 10× long.

Always watching.

Ariadne Demo · 10× BTC long Watching
Mark
…
Ariadne closes at
…
Liquidation
…

Reading Hyperliquid…

What Ariadne sees, every 3 seconds.

The 3 December crash, replayed.

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

It can trade. It can’t take.

3s between checks

Each armed account is read straight from Hyperliquid every 3 seconds: size, mark and Hyperliquid’s own liquidation price.

  • Place orders
  • Withdraw
  • Transfer
  • Approve

Can’t withdraw.

Ariadne trades through a Hyperliquid agent wallet. Agents can place orders. They cannot withdraw, transfer or approve anything.

Reduce-only.

Every order can only make a position smaller. It never opens one, adds to one or flips one.

Margin first.

An isolated position with free collateral gets margin before anything is sold.

Revoke anytime.

Disarm here and the key is deleted. Or revoke the agent in Hyperliquid, under API.

Free.

No fee and no builder code.

Armed in one signature.

Connect a wallet, set your line, approve an agent. Ariadne does the watching.

  1. Connect
  2. Rule
  3. Approve
  4. Armed

One signature approves an agent that can trade but never withdraw. Nothing is signed or sent before that.

What it can’t do.

  • A gap faster than 3 seconds can still liquidate you. Ariadne acts on Hyperliquid’s mark price on each check. A move through your whole buffer between two checks is out of its reach.
  • Some orders will not fill. IOC orders in a thin book can miss the 1% slippage cap. Ariadne logs it, waits out the cooldown and tries again.
  • Partial steps bleed in a one-way crash. In the 3–5 Dec replay, closing at the line kept $691 of $1,000. 25% steps kept $16, less than the $114 a liquidation leaves at best, and $0 if the backstop takes it. That is why the default closes the whole position.
  • Closing at the line ends the trade. If price turns back after Ariadne closes you, you are out of the move. Re-entering is your call; Ariadne never opens a position.
  • The agent key sits on our server. It is encrypted at rest with AES-GCM and can only trade. Anyone who took the server and its secret could trade your account until you revoke the agent.
  • Not audited. The code is small and tested, not audited.

Questions.

What exactly happens on each check?

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.

How do you know the liquidation price is right?

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×.

Are the signatures really Hyperliquid’s?

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.

Which wallet and chain do I need?

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.

Will it ever open a position or add to one?

No. Every order is reduce-only, so it can only make a position smaller. It never withdraws or moves funds between accounts.

What happens when I close the position myself?

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.

How do I stop it?

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.

Why close the whole position by default?

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.

Set your line.

Free. One signature. Revoke anytime.