market.oracle_gap
Measure the single-snapshot basis-point gap between a Hyperliquid perpetual's mid price and its mark/oracle price, returning an elevated flag to help detect oracle-pricing risk.
Instructions
Single-snapshot gap between Hyperliquid's mid price and its mark/oracle
prices for one perpetual - the exact failure mode behind the 2026-10-10
Papertrade incident on HyperEVM, where a protocol priced off Hyperliquid's
raw mid instead of mark/oracle and an attacker moved ~$2.31B notional on
Hyperliquid itself to swing the mid ~12bp, netting ~$1.28M from Papertrade.
Returns mid_oracle_gap_bp and mark_oracle_gap_bp in basis points, plus an
`elevated` flag.
`elevated` is a fixed-threshold boolean (abs(mid_oracle_gap_bp) >=
alert_threshold_bp), NOT a manipulation determination - it only says the
gap is currently wide, not why. This is a single point-in-time snapshot
with no trade-flow or volume data (Hyperliquid's public API does not
expose per-market volume), so it cannot by itself distinguish organic
volatility from an attempted price push. Always check the response's
`notice` field.
Args:
coin: Hyperliquid perpetual ticker, e.g. "ETH" or "BTC".
Returns:
On success: {"success": true, "coin", "mid_price", "mark_price",
"oracle_price", "mid_oracle_gap_bp", "mark_oracle_gap_bp",
"elevated", "alert_threshold_bp", ...}
On failure: {"success": false, "error": {"type", "message"}}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coin | Yes |