Hyperliquid oracle price data
Read oracle, mark, and mid prices for native and HIP-3 markets. One assetContext call covers up to 20 coins, and oraclePriceHistory returns up to 2,000 points per coin.
{"type":"oraclePriceHistory","coin":"BTC","limit":100}Oracle, mark & mid
Oracle price, mark price, mid price, impact prices, and open interest — the full pricing context for any market.
Live and historical
Read the current state with assetContext, or pull up to 2,000 historical points per coin with oraclePriceHistory.
Native + HIP-3
Prices across native Hyperliquid and every HIP-3 dex. Filter by dex, or query them all in one request.Looking for Oracle (ORCL) stock prices? Trade[XYZ]'s ORCL perp is xyz:ORCL.
Batched queries
Fetch up to 20 coins in a single assetContext call, or every mid price at once with allMids.
Historical oracle, mark, and external perp prices for a coin — up to 2,000 points, across native and HIP-3 dexes.
curl -X POST https://api.hydromancer.xyz/info \
-H "Authorization: Bearer $HYDROMANCER_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "type": "oraclePriceHistory", "coin": "BTC", "limit": 100 }'How Hyperliquid's oracle and mark prices work
Oracle price. Validators publish an oracle price for each perp about every 3 seconds. Each validator takes a weighted median of spot prices on Binance (weight 3), OKX (2), Bybit (2), and Kraken, KuCoin, Gate, MEXC and Hyperliquid (1 each). The final price is the stake-weighted median of all validators' prices. Coins traded mainly on Hyperliquid, like HYPE, leave out other exchanges until they have enough liquidity there; coins traded mainly elsewhere, like BTC, leave out Hyperliquid's spot price. The oracle price sets funding.
Mark price. The mark price is the median of three prices: the oracle price adjusted by a 150-second average of the gap between Hyperliquid's mid and the oracle; the median of Hyperliquid's best bid, best ask and last trade; and a weighted median of perp prices on Binance, OKX, Bybit, Gate and MEXC. It's used for margin, liquidations, take-profit and stop-loss orders, and unrealized PnL.
HIP-3 markets. Each HIP-3 deployer supplies its own oracle and mark prices, so they can differ from Hyperliquid's method. oraclePriceHistory adds a second mark price, markPx2, for some HIP-3 markets.
Source: Hyperliquid's Oracle and Robust price indices docs.
Frequently asked questions
How is Hyperliquid's oracle price calculated?+
Validators publish a weighted median of spot prices from eight exchanges about every 3 seconds, and Hyperliquid uses the stake-weighted median of their prices. Get it with assetContext (live) or oraclePriceHistory (history).
How does Hyperliquid calculate the mark price?+
It's the median of three prices: the oracle adjusted by a 150-second average of Hyperliquid's mid, Hyperliquid's own bid, ask and last trade, and other exchanges' perp prices. It drives margin and liquidations.
Do HIP-3 markets use the same oracle?+
No. Each HIP-3 deployer sets its own prices. Hydromancer returns them the same way, with the xyz: style prefix (for example xyz:TSLA).
Pricing data oracles can trust
Low latency, high stability, complete across every market — the same feeds powering oracle providers and risk engines on HyperCore.