Core Guide · Step 3 of 5
TL;DR
A trade on Hyperliquid moves through several states: order, execution, position, position updates, and exit. An order by itself does not mean you already have an open position. A position appears or changes only after execution.
After execution, the position continues to exist inside the system. Its PnL, margin, and risk change with the market until the position is closed or liquidated.
Core idea
In the previous article, we looked at where Hyperliquid’s trading logic lives. Now the next question is what happens as a trade moves through that system.
From the user’s side, the flow can look simple: you place an order, it fills, and a position appears. But inside the trading logic, this is not a single event. It is a sequence of states.
First, there is an order. Then it may execute. After execution, a position appears or changes. While the position is open, it continues to update with the market. Finally, the position reaches an endpoint: the user closes it, or the system closes it through liquidation. That is the trade lifecycle.
An order is not a position
The first important distinction is simple: an order and a position are not the same thing. An order is an instruction to buy or sell under specific conditions.
Until the order executes, it does not create full market exposure. It may rest in the order book, execute partially, execute fully, or be canceled. A position appears only when an order actually executes.
So the user should separate two states:
- an order shows intent to trade;
- a position shows existing market exposure.
This distinction makes the interface easier to read. It prevents the common mistake of treating “I placed an order” as the same thing as “I am already in a position.”
Execution is the transition point
Execution is the moment when an order matches with available liquidity and becomes a real trade. This is where intent becomes result.
After execution, the system updates the user’s state: a new position may appear, or an existing position may change.
For example, an executed order can:
- open a new position
- increase an existing position
- reduce a position
- close it completely
- flip exposure if the executed size is larger than the current position
This makes execution the central transition in the lifecycle. Before execution, the user has an active order. After execution, the user has changed market exposure.
A position keeps changing after execution
A common mistake is to think that the trade ends when execution happens. In reality, execution starts the next part of the lifecycle: the open position begins to change with the market.
Price moves. PnL changes. Margin changes. Liquidation risk can also change. The user may do nothing, but the position remains an active part of the system. It continues to depend on price, position size, collateral, and the current account state.
So a position is not a static result of a trade. It is a state that keeps updating while the position remains open.
How a position changes
An open position can change in two main ways. The first way is through the market. Even without new user actions, price changes, and with it PnL, margin, and risk can change.
The second way is through new orders. The user can add to the position, reduce it, or close it completely. Each new order follows the same path again: it must enter the system and execute before it changes the position.
This gives a simple rule:
An order changes a position only after execution.
This matters for trade management. Until the order executes, it has not changed your exposure. After execution, it becomes part of the position lifecycle.
How a position ends
A position has two main endpoints. The first endpoint is user-driven. The user closes the position by submitting an opposite or reducing order. After execution, the position is reduced or removed. The second endpoint is system-driven. The system closes the position through liquidation if the position no longer satisfies margin requirements.
This page does not explain liquidation mechanics in detail. That comes later. For now, the important point is where liquidation fits in the lifecycle:
liquidation is a forced endpoint for a position when the system no longer allows it to remain open.
So the lifecycle closes in one of two ways: the user closes the position, or the system closes it.
Trade lifecycle in short form
Why this matters
The trade lifecycle is not just terminology. It helps the user understand where they are in the system.
If you have an order, that is not the same as having an open position. If a position is open, it continues to change even without new actions. If you want to close a position, you need a new executed order. If margin becomes insufficient, the position may reach a forced endpoint through liquidation. This frame connects the interface to the actual trading logic.
What this page does not explain yet
This page explains how a trade moves from order to position and then to an endpoint. It does not explain who controls assets or why executed actions should not be treated as reversible.
That comes next. Once it is clear how an order becomes a position, the next question is who authorizes those actions and who owns the consequences after execution.
Key idea
You can move on when
- You understand the difference between an order and a position.
- You can explain why a position appears or changes only after execution.
- You understand that an open position keeps updating with the market.
- You can explain why closing a position also requires an executed order.
- You understand where liquidation fits in the lifecycle of a position.