Parameters
Request type identifier specifying 'allMids' as the info endpoint method to retrieve all mid-market prices across Hyperliquid trading pairs
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
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
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')
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')
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