Leverage that moves.Mid-position.

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 →
Target leverage now
...
HYPE mark...
Volatility, 1h...
Funding, 1h...
Decider...
01 How it works

The position stays open. Only the margin behind it changes.

Price
Liquidation
Drag the leverage
5.0x
Margin behind $10,000$2,000
Distance to liquidation-
Orders placedNone
01

Margin moves. Size does not.

Adding margin lowers leverage and moves the liquidation price away. Removing margin raises leverage and frees capital.

02

One call every 6 seconds.

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.

03

Your funds stay yours.

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.

02 The math

Leverage is set from volatility. These are the live numbers.

Step 1

Measure volatility

σ = √ EWMA(r²) × √60

A typical one-hour move, from recent one-minute returns.

...
Step 2

Set the required distance

d* = 3 × σ

Liquidation must sit at least three typical hourly moves away.

...
Step 3

Convert to leverage

L* = 1 / (d* × (1 − m) + m)

m is the exchange's maintenance margin rate. The result is capped at 10x.

...
Step 4

Move the margin

ΔM = N / L* − E

For a $1,000 position currently at 5x, this is the margin to add or remove.

...
Leverage and distance to liquidation

The curve is the exchange's liquidation rule. The dashed line is today's required distance. Where they meet is the target leverage.

03 The decider

Why Jev makes the call.

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.

It answers the exact question.

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.

It is fast enough for a 6-second loop.

Calls returned in 100 to 170 milliseconds in our tests, so the decision arrives well inside each tick.

The arithmetic stays in code.

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.

Jev's answers to five test positions
Position describedReduce?Call
Far from liquidation, volatility falling, in profit6%▲ UP
Far from liquidation, volatility steady, flat7%▲ UP
Comfortable distance, at the target leverage8%▲ UP
Close to liquidation, drifting against, small loss97%▼ DOWN
Very close, volatility rising, large loss98%▼ DOWN

Measured on the live model. If a call fails, the built-in risk engine decides that tick.

Terminal

Connect a wallet and try it.

Open terminal →