Skip to content
Leverage can liquidate a position. Paper results are not a forecast. These pages describe what the app does today.
Docs08
Browse the docs

Mark price & data

Every paper fill, margin check and liquidation uses one number: the guarded mark. It is built from three venue prices, kept inside an oracle band and refused when it is old.

On this page

Sources#

One public Hyperliquid info call returns, for every market, three prices and the current funding rate. The desk reads all of it once and caches it for a few seconds.

InputWhat it is
MarkThe venue’s own mark price for the perpetual.
MidThe middle of the order book at that moment.
OracleThe external index price the venue uses for funding and liquidation.
FundingThe venue’s published hourly funding rate.
CandlesOne-minute bars, used only for the high and low since the last check.

The guarded mark#

  1. Take the median of mark, mid and oracle. One odd value cannot move the median.
  2. Clamp the result to the oracle ±200 bps. The band is 2%.
  3. Record whether the clamp changed it. Clamped marks are labelled in the status response.
  4. If the data is older than 15 seconds, or any input is missing or not positive, the mark is marked unusable.
In words
guarded = clamp( median(mark, mid, oracle),  oracle × 0.98,  oracle × 1.02 )
usable  = every input is a positive number  and  age ≤ 15 s
ParameterValue
Deviation band±200 bps around the oracle
Staleness limit15 seconds
Cache lifetimeA few seconds, shared across accounts

What it drives#

  • The price of paper market and marketable orders.
  • Unrealized result, equity and available margin.
  • The check for stops, targets, resting orders and liquidation, together with the one-minute extremes.
  • Funding payments, which use the guarded mark as the notional price.

When data is missing#

The engine fails closed. With no usable price it refuses new orders and changes nothing. A stale price also stops stops, targets, limits and liquidations from firing, so an old number cannot trigger an event.

Limits of the model#

  • The desk does not run its own oracle. It trusts Hyperliquid’s oracle and checks it against two other venue prices.
  • Paper fills at the mark have no spread or impact. Real orders pay both.
  • The live path prices an order from the venue mark and caps the move with your slippage limit. It does not use the guarded mark.
Elize Bot is not affiliated with or endorsed by Hyperliquid, Elysium, Kinetiq or Montra. Names are used only to say which venue or chain a feature talks to. Leveraged positions can be liquidated, and a paper result is not a forecast of a real one.