HyperliquidHyperliquid REST APIMarket data

Get All Mid Prices

Returns mid prices for all available trading pairs. Uses order book mid-point when available, falls back to last trade price.

Rate Limit: 2 weight

POST
/v1/info/allMids

Request Body

application/json

type*enum<string>required

Request type identifier

Available options: allMids
dex?stringdefault: ""

Perp dex name for multi-dex support. Defaults to empty string (first perp dex).

Response Body

application/json

application/json

curl -X POST "https://api.hypereth.io/v1/info/allMids" \  -H "Content-Type: application/json" \  -d '{    "type": "allMids"  }'
{
  "BTC": "43250.5",
  "ETH": "2650.25",
  "HYPE": "40.7915"
}
{
  "error": "Insufficient margin for order placement",
  "code": 1001,
  "details": {}
}