Oracles
This page describes the data sources and rules Hypercall uses for:
- Underlying prices (spot and forward/mark)
- Settlement reference prices (expiry TWAP)
- Implied volatility (IV) / vol surface
Terminology
Hyperliquid's metaAndAssetCtxs response contains several price fields. Hypercall uses them as follows:
| Field | Description | Usage |
|---|---|---|
oraclePx | External spot/index price | Canonical spot input for all pricing |
markPx | Hyperliquid's mark price (oracle plus premium adjustment) | Not used as canonical spot |
midPx | Mid price from the Hyperliquid orderbook | Reference only |
impactPxs | Slippage-aware prices | Reference only |
Forward/Mark-to-Expiry Price
In Hypercall, "mark price" may also refer to a forward price computed as:
Where:
- is the oracle/index spot (
oraclePx) - is the risk-free rate
- is time to expiry (in years)
This forward price is used for greeks, risk calculations, and other computations that depend on the forward rather than spot.
Underlying Price Oracle
Purpose
The underlying price oracle provides real-time spot prices used for:
- Options pricing and greeks
- Margin calculations
- Risk monitoring
- Mark-to-market valuations
Data Source
Hyperliquid Info API (https://api.hyperliquid.xyz/info)
We ingest the oraclePx field from metaAndAssetCtxs for each supported underlying asset.
Forward Price
For any option series with a future expiry, Hypercall computes a forward price using the formula above. This ensures pricing consistency with time-to-expiry across all risk and valuation calculations.
Settlement Oracle
Purpose
The settlement oracle determines the reference price used to cash-settle options at expiry.
Settlement Rules
| Parameter | Value |
|---|---|
| Expiry time | 08:00 UTC |
| Reference price | 30-minute TWAP of oraclePx |
| TWAP window | [expiry - 30 minutes, expiry] |
How It Works
At expiry, positions are cash-settled using a 30-minute Time-Weighted Average Price (TWAP) of the underlying's oracle spot price. The TWAP smooths out short-term volatility and provides a manipulation-resistant settlement reference.
TWAP Calculation Method
The settlement price is computed using a median-of-means algorithm with 5% trimming:
- Collect samples: Gather price samples during the window
- Trim outliers: Sort and remove 5% from each tail, yielding trimmed set of size
- Partition into buckets: Divide into equal-sized buckets
- Compute bucket means:
- Final settlement price:
This approach is more robust than a simple average, as it resists manipulation from brief price spikes or flash crashes during the settlement window.
Implied Volatility Oracle
Purpose
The IV oracle provides the volatility surface used for:
- Options pricing (Black-Scholes inputs)
- Vega risk calculations
- Margin requirements
Data Source
Block Scholes provides real-time implied volatility data via WebSocket.
Vol Surface
Hypercall maintains an in-memory volatility surface per underlying, with:
- Strike-specific IV for configured strikes
- ATM IV as a baseline reference
- Interpolation across strikes and expiries when exact data points are unavailable
Staleness Handling
If the vol oracle becomes unavailable or stale, the system falls back to conservative assumptions to protect against pricing with outdated data. Exact parameters are configured as venue risk controls.