Core Reading Path - Step 5 of 5
Intro
TL;DR
- A position can remain open only while it satisfies margin requirements.
- Margin is not a one-time check at entry. It is a continuous condition that changes with price, PnL, equity, collateral, and position size.
- Liquidation happens when the system must reduce or close unsafe exposure to restore a valid state.
The previous article explained custody and irreversibility: the user controls actions through wallet authorization, and executed outcomes should be treated as final system events.
Now the final question is risk.
Once a position exists, it does not remain valid just because it was opened.
It has to keep satisfying the system requirements.
Margin defines whether a position has enough support to continue existing under current market conditions.
If the position no longer satisfies those requirements, the system cannot treat it as normal open exposure.
At that point, liquidation becomes possible.
Liquidation is not a punishment and not a human decision.
It is the system enforcing the boundary between valid and invalid exposure.
Why margin exists
A leveraged position creates exposure larger than the trader direct collateral.
That is the basic reason margin exists.
The system needs a way to decide whether the user has enough equity to support the open position.
Without that constraint, a position could continue losing value beyond the collateral available to absorb the loss.
That would create a problem not only for the individual trader, but for the trading system as a whole.
So margin is the system way of asking:
Can this position still exist safely under current conditions?
If the answer is yes, the position can remain open.
If the answer becomes no, the system has to act.
Margin is a continuous condition
Margin should not be understood as a one-time approval at the moment a position opens.
A position may be valid when it is created, but market conditions can change after that.
Price can move against the position. Unrealized PnL can decrease. Account equity can fall. The position can become more difficult to support.
This means margin is continuous.
The system is not only checking whether the trade was allowed at entry. It is also evaluating whether the position remains valid as conditions change.
Opening a position proves that it was valid at that moment. Keeping a position open requires it to remain valid over time.
That distinction is critical.
A position is not permanently approved. It is continuously conditional.
What makes a position unsafe
A position becomes unsafe when the relationship between collateral, equity, position size, and market price moves too far against the trader.
The exact numbers depend on the market and system parameters, but the mental model is simple:
The position needs enough remaining support to absorb losses and maintain required margin.
As losses grow, that support becomes thinner.
Eventually, the position can approach a point where the system no longer considers it safe to remain open in its current form.
This is the unsafe zone.
The system does not need to judge whether the trader still believes in the trade.
It only evaluates the current state.
Valid, at risk, unsafe
This model is intentionally simple.
The goal is not to memorize every formula.
The goal is to understand the boundary.
A position exists inside the system only while it satisfies the conditions required for open exposure.
When those conditions fail, liquidation is how the system responds.
Liquidation as enforcement
Liquidation is often misunderstood as something that happens to the trader.
That framing makes it feel like an external punishment.
Liquidation is the system enforcing the conditions required for a position to exist.
When a position becomes unsafe, the system has to reduce the risk created by that exposure.
That may mean reducing the position. It may mean closing the position.
The system is not choosing whether it feels like liquidating the trader. It is enforcing a rule.
The position has moved outside the valid range, so the system acts to bring exposure back within acceptable limits.
Why liquidation is automatic
Liquidation has to be automatic because the risk is live.
Markets do not wait.
A losing position can become more dangerous as price continues moving. If the system waited for manual approval, user confirmation, or discretionary review, losses could grow beyond the collateral available.
That would create solvency risk.
So liquidation is not designed around comfort.
It is designed around system protection.
This is why there is no traditional margin-call model where the user can assume there will be a long manual grace period before anything happens.
Liquidation protects the system, not the trader
Liquidation is not designed to save the trader from loss.
It is designed to prevent unsafe exposure from remaining open.
Those are different goals.
From the trader point of view, liquidation can feel like the system closing the position at the worst possible moment.
From the system point of view, liquidation is a risk-control mechanism.
It exists to limit the damage caused by a position that no longer has enough margin support.
That means the liquidation mechanism prioritizes system validity and solvency over the user preferred trade outcome.
How liquidation fits the trade lifecycle
The trade lifecycle article introduced liquidation as a possible endpoint.
Now that endpoint has a clear meaning.
A normal close happens when the user submits an action that removes exposure.
A liquidation happens when the system removes or reduces exposure because the position no longer satisfies margin requirements.
Why custody matters here
The custody article explained that the user owns the consequences of authorized actions.
Margin and liquidation show why that matters.
When a user opens a leveraged position, they are not only choosing market direction.
They are also choosing exposure size, collateral usage, and distance from liquidation.
This is where custody, irreversibility, and margin connect:
- the user authorizes the action
- execution creates exposure
- the position keeps changing
- margin determines whether it remains valid
- liquidation enforces the boundary if validity breaks
Practical mental model
If price moves in favor of the position, the position may have more room.
If price moves against it, the position may have less room.
If the margin condition breaks, the system acts.
Liquidation is not an extra feature. It is the boundary condition of leveraged trading.
Final recap
- Hyperliquid is a purpose-built on-chain trading system.
- Its architecture organizes trading around one shared system state.
- A trade moves through a lifecycle: order, match, execution, position, updates, and endpoint.
- The user controls actions through wallet authorization and owns the consequences of executed actions.
- A leveraged position can remain open only while it satisfies margin requirements.
- Liquidation is how the system enforces that boundary when conditions break.
Key idea
Reinforcement
A position is not safe just because it is open.
It is only currently valid.
As market conditions change, the position keeps being evaluated.
If it remains within margin requirements, it can continue.
If it falls outside those requirements, the system can reduce or close it.
That is the final piece of the mental model: Hyperliquid does not only let users create exposure. It also enforces the conditions under which that exposure is allowed to remain.
You can move on when
- You can explain why margin is a continuous condition, not a one-time entry check.
- You can explain why a position may become unsafe as price, PnL, and equity change.
- You can describe liquidation as system enforcement rather than punishment.
- You can explain why liquidation protects system validity and solvency.
- You can connect liquidation back to the full trade lifecycle as a forced endpoint.