Ballast changes the leverage of an open Hyperliquid position by moving margin in or out. The position stays open and no order is placed.
Open terminal →Adding margin lowers leverage and moves the liquidation price away. Removing margin raises leverage and frees capital.
In Agentic mode a model answers one question per tick: should leverage go up or down. Each call moves it one step. In Manual mode you set it yourself.
Money sits in your own Hyperliquid account. Ballast is approved to trade it, cannot withdraw it, and never adds more margin than the budget you set.
σ = √ EWMA(r²) × √60
A typical one-hour move, from recent one-minute returns.
...d* = 3 × σ
Liquidation must sit at least three typical hourly moves away.
...L* = 1 / (d* × (1 − m) + m)
m is the exchange's maintenance margin rate. The result is capped at 10x.
...ΔM = N / L* − E
For a $1,000 position currently at 5x, this is the margin to add or remove.
...The curve is the exchange's liquidation rule. The dashed line is today's required distance. Where they meet is the target leverage.
Jev is TypeSafe's decision model. It does not write text. It takes a description of a situation and a yes-or-no question, and returns a probability.
Each tick asks one thing: should leverage on this position be reduced now. The answer is a number from 0 to 100%. At 50% or more the call is DOWN, otherwise UP.
Calls returned in 100 to 170 milliseconds in our tests, so the decision arrives well inside each tick.
Jev is weak with raw numbers, so Ballast computes everything and describes the position in words. Jev judges the picture. The budget and the 10x cap are enforced in code regardless of its answer.
Measured on the live model. If a call fails, the built-in risk engine decides that tick.