Unified REST APIMarket data
Get Top of Book
Get best bid/ask prices and mid price
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:
spotperpResponse 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
}Get Strategy Balances GET
Query available balances for multiple accounts on a trading pair. Useful for checking account balances before submitting a strategy. **Account Format**: `exchange:account_id:marketType` (comma-separated for multiple accounts, marketType is optional) **Example**: `https://api.hypereth.io/v2/all/strategy/balances?symbol=MON&accounts=kuru:acc_A:spot,kuru:acc_B:spot`
Get Order Book GET
Get order book depth data