> ## Documentation Index
> Fetch the complete documentation index at: https://docs.scape.exchange/llms.txt
> Use this file to discover all available pages before exploring further.

# Mark Price

> How mark prices are computed and applied.

The mark price is used for margining, liquidations, stop/limit triggers, and unrealized P\&L.

Scape's pushed mark input is the **median** of three components:

1. The oracle price.
2. The oracle price plus **basis** — a 150-second EWMA of the order-book impact mid relative
   to the oracle.
3. The venue mark derived from the order book.

The relayer pushes this input on-chain. HyperCore determines the final mark under current
protocol rules using the pushed inputs and its own book-derived mark, including movement
clamps and stale-input fallbacks.

<Note>
  The final mark determination is fixed by Hyperliquid and is **not deployer-configurable**.
  Scape sets the oracle and pushed inputs that feed it, not the mark methodology.
</Note>

## Off-Hours Behavior

During off-hours, the discovery band caps the published
[oracle price](/market-mechanics/oracle-price) — and with it the funding reference. The basis
term allows the pushed mark to follow the local order book beyond the oracle band, with
smoothing. Margining and liquidations remain live against the protocol-determined mark
throughout.
