Skip to main content

allMids Info Endpoint Method

Returns real-time mid-market prices for all trading pairs, calculated from best bid and ask levels. If the order book is empty, the last trade price is used as a fallback.

Updated on
Jun 15, 2026

Parameters

type
string
REQUIRED

Request type identifier specifying 'allMids' as the info endpoint method to retrieve all mid-market prices across Hyperliquid trading pairs

dex
string

Optional perpetual DEX identifier for multi-exchange support. Defaults to empty string representing the primary Hyperliquid perpetual exchange. Note: spot market mid prices are only included when querying the first (default) perpetual DEX

Returns

object
object

Key-value object mapping trading pair symbols to their real-time mid-market prices. Mid prices are calculated as the average of best bid and best ask, with fallback to last trade price for illiquid markets. All prices returned as strings to preserve decimal precision for financial calculations

BTC
string

Mid-market price for Bitcoin perpetual trading pair, calculated from the midpoint between highest bid and lowest ask in the order book. String format preserves full decimal precision (e.g., '43250.5')

ETH
string

Mid-market price for Ethereum perpetual trading pair, representing the fair value between bid and ask levels. Returned as string to maintain precise decimal values (e.g., '2345.75')

coin
string

Mid-market price for each available trading pair on Hyperliquid. Perpetual pairs use standard symbols (BTC, ETH, SOL), spot pairs use @index notation (e.g., @107), and outcome sides (HIP-4) use #N notation (e.g., #0 for Yes, #1 for No). All prices returned as strings for precision

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free