Appearance
Prices
Every open, close, settlement and liquidation happens at one price: a Hyperliquid mid the operator read, which the contract checks before it accepts it.
Live on the testnetThe source
The price is the mid of Hyperliquid's best bid and offer for the BTC and ETH perps. The server keeps the order book and market context streams open, falls back to polling if the socket goes silent, and stores one mid per second. It also reads Hyperliquid's oracle price for the same market.
No order is ever placed on Hyperliquid. Its book is a reference only.
What the contract is given
Each action carries one price record:
Price { ts, mid, oraclePx }The contract refuses it when:
- the mid is more than 15 bp from the oracle price;
- either figure is missing;
- for an open or a close, the price is more than 3 seconds old or from the future;
- for a settlement, the price was read before the fuse's expiry.
So the operator chooses which second's price to send, inside a 3-second window, and cannot send one the oracle disagrees with.
One second after the click
An open or a close does not use the price at the click. It uses the first price read at least one second later.
The reason is latency. If a trade filled at the price on your screen, anyone who saw the price move a moment earlier on a faster venue could buy the old price and be paid for the gap. A one-second wait means the price you get is one nobody has seen yet. It costs an honest trader nothing on average: the price is as likely to move for them as against them in that second.
The deadband on a win
A winning exit is measured 0.2 bp less favourably: the exit price is pulled 0.2 bp back toward the entry, never past it. A losing exit is untouched.
A move of a tick or two is the size of the lag between any two price feeds. The deadband makes such a move worth nothing, so there is no reward for trading the lag itself.
Expiry
A fuse settles at the first usable price at or after its expiry time. If the feed is down at that moment, settlement waits for the next price that passes the checks.
When the price cannot be trusted
If the feed is behind or the mid and the oracle disagree by more than the limit, opens and closes are refused with that reason until the feed recovers. Open fuses keep running: their clocks are on-chain timestamps and do not depend on the feed.
See Risk for what trusting the operator's price means.