Unified REST APIMarket data

Get Top of Book

Get best bid/ask prices and mid price

GET
/getTOB

Authorization

ApiKeyAuth
X-API-KEY<token>

In: header

Query Parameters

symbols?string

One symbol or an array of symbols (comma-separated)

marketType?enum<string>

Optional market type filter. Use "spot" for spot markets or "perp" for perpetual/futures markets.

Available options: spotperp

Response Body

application/json

curl -X GET "https://api.hypereth.io/v2/hyperliquid/getTOB?symbols=BTC%2CETH"
{
  "data": [
    {
      "symbol": "BTC",
      "marketType": "future",
      "bidPrice": "65000.1",
      "bidSize": "0.5",
      "askPrice": "65000.2",
      "askSize": "0.7",
      "midPrice": "65000.15",
      "dexProcessedTimestamp": 1710000000800
    }
  ],
  "dataTime": 1710000000000,
  "dexReceivedTimestamp": 1710000000900,
  "hyperethTimestamp": 1710000001000
}