Hyperliquid API
Returns Hyperliquid perpetual and spot market data: mid prices, metadata, order books, candles, funding rates and volume.
View as Markdown| GET | /hyperliquid/mids | Mid price of every perpetual and spot market, sorted by coin. |
| GET | /hyperliquid/meta | Perpetual markets of Hyperliquid with their size decimals and maximum leverage. |
| GET | /hyperliquid/orderBook | Top 20 bid and ask levels of one market, best price first. |
| GET | /hyperliquid/trades | The most recent trades of one Hyperliquid market, with price, size and side. |
| GET | /hyperliquid/candles | The latest OHLC candles of one market, oldest first. |
| GET | /hyperliquid/perpMarkets | Every perpetual futures market with its mark, oracle and mid price, funding rate, open interest and 24-hour volume. |
| GET | /hyperliquid/spotMarkets | Every spot trading pair with its mark and mid price, 24-hour volume and token supply. |
| GET | /hyperliquid/fundingHistory | Hourly funding rate history of one perpetual market, newest last. |
| GET | /hyperliquid/predictedFundings | Predicted next funding rate of perpetual markets on Hyperliquid and on other venues such as Binance and Bybit, optionally of one market. |
mids
/v1/hyperliquid/midsMid price of every perpetual and spot market, sorted by coin.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
2 fields
coin | string |
price | string |
curl "https://api.hoshime.com/v1/hyperliquid/mids" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hyperliquid/mids", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hyperliquid/mids", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "coin": "#114910", "price": "0.5" }, { "coin": "#114911", "price": "0.5" } ], "meta": { "cached": false, "endpoint": "mids", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hyperliquid", "requestId": "req_2Xb9kQ…", "units": 1 } }
meta
/v1/hyperliquid/metaPerpetual markets of Hyperliquid with their size decimals and maximum leverage.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
4 fields
isDelisted | boolean |
maxLeverage | integer (int64) |
name | string |
szDecimals | integer (int64) |
curl "https://api.hoshime.com/v1/hyperliquid/meta" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hyperliquid/meta", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hyperliquid/meta", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "isDelisted": false, "maxLeverage": 40, "name": "BTC", "szDecimals": 5 }, { "isDelisted": false, "maxLeverage": 25, "name": "ETH", "szDecimals": 4 } ], "meta": { "cached": false, "endpoint": "meta", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hyperliquid", "requestId": "req_2Xb9kQ…", "units": 1 } }
orderBook
/v1/hyperliquid/orderBookTop 20 bid and ask levels of one market, best price first.
Parameters
coinstring required | Market name, such as BTC or ETH. e.g. BTC |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
asks | Level[] |
orders | integer (int64) |
price | string |
size | string |
bids | Level[] |
orders | integer (int64) |
price | string |
size | string |
coin | string |
time | string |
curl "https://api.hoshime.com/v1/hyperliquid/orderBook?coin=BTC" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hyperliquid/orderBook?coin=BTC", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hyperliquid/orderBook?coin=BTC", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "asks": [ { "orders": 15, "price": "75722.0", "size": "3.71341" }, { "orders": 2, "price": "75723.0", "size": "0.39682" } ], "bids": [ { "orders": 26, "price": "75721.0", "size": "6.31954" }, { "orders": 4, "price": "75720.0", "size": "0.24319" } ], "coin": "BTC", "time": "2026-11-06T18:01:50Z" }, "meta": { "cached": false, "endpoint": "orderBook", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "hyperliquid", "requestId": "req_2Xb9kQ…", "units": 1 } }
trades
/v1/hyperliquid/tradesThe most recent trades of one Hyperliquid market, with price, size and side.
Parameters
coinstring required | Market name, such as BTC or ETH. e.g. BTC |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
6 fields
hash | string |
id | string |
price | string |
side | string |
size | string |
tradedAt | string |
curl "https://api.hoshime.com/v1/hyperliquid/trades?coin=BTC" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hyperliquid/trades?coin=BTC", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hyperliquid/trades?coin=BTC", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "hash": "…", "id": "abc123", "price": "…", "side": "…", "size": "…", "tradedAt": "2026-11-06T09:41:00Z" } ], "meta": { "cached": false, "endpoint": "trades", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hyperliquid", "requestId": "req_2Xb9kQ…", "units": 1 } }
candles
/v1/hyperliquid/candlesThe latest OHLC candles of one market, oldest first.
Parameters
coinstring required | Market name, such as BTC or ETH. e.g. BTC |
intervalstring | Candle length, such as 1h or 1d.1m3m5m15m30m1h2h4h8h12h1d3d1w1Mdefault 1h |
latestinteger | Number of latest candles, from 1 to 500. default 100 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
10 fields
coin | string |
interval | string |
items | Candle[] |
close | string |
high | string |
low | string |
open | string |
openedAt | string |
trades | integer (int64) |
volume | string |
curl "https://api.hoshime.com/v1/hyperliquid/candles?coin=BTC" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hyperliquid/candles?coin=BTC", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hyperliquid/candles?coin=BTC", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "coin": "BTC", "interval": "1h", "items": [ { "close": "77843.0", "high": "78138.0", "low": "77687.0", "open": "77932.0", "openedAt": "2026-11-02T14:00:00Z", "trades": 15911, "volume": "1316.9873" }, { "close": "77499.0", "high": "78108.0", "low": "77280.0", "open": "77844.0", "openedAt": "2026-11-02T15:00:00Z", "trades": 18823, "volume": "1996.69142" } ] }, "meta": { "cached": false, "endpoint": "candles", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "hyperliquid", "requestId": "req_2Xb9kQ…", "units": 1 } }
perpMarkets
/v1/hyperliquid/perpMarketsEvery perpetual futures market with its mark, oracle and mid price, funding rate, open interest and 24-hour volume.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
15 fields
change | string |
changePercent | string |
funding | string |
high | string |
low | string |
maxLeverage | integer (int64) |
midPrice | string |
open | string |
openInterest | string |
oraclePrice | string |
prevDayPrice | string |
price | string |
symbol | string |
updatedAt | string |
volume | string |
curl "https://api.hoshime.com/v1/hyperliquid/perpMarkets" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hyperliquid/perpMarkets", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hyperliquid/perpMarkets", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "change": "", "changePercent": "", "funding": "0.0000125", "high": "", "low": "", "maxLeverage": 40, "midPrice": "75721.5", "open": "", "openInterest": "42777.2613", "oraclePrice": "75731.0", "prevDayPrice": "75948.0", "price": "75722.0", "symbol": "BTC", "updatedAt": "", "volume": "3420907968.5405774117" }, { "change": "", "changePercent": "", "funding": "0.0000125", "high": "", "low": "", "maxLeverage": 25, "midPrice": "2224.9", "open": "", "openInterest": "992551.1378000005", "oraclePrice": "2225.61", "prevDayPrice": "2254.3", "price": "2225.0", "symbol": "ETH", "updatedAt": "", "volume": "915400071.1605994701" } ], "meta": { "cached": false, "endpoint": "perpMarkets", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hyperliquid", "requestId": "req_2Xb9kQ…", "units": 1 } }
spotMarkets
/v1/hyperliquid/spotMarketsEvery spot trading pair with its mark and mid price, 24-hour volume and token supply.
Parameters
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
15 fields
base | string |
change | string |
changePercent | string |
circulatingSupply | string |
high | string |
low | string |
midPrice | string |
open | string |
prevDayPrice | string |
price | string |
quote | string |
symbol | string |
totalSupply | string |
updatedAt | string |
volume | string |
curl "https://api.hoshime.com/v1/hyperliquid/spotMarkets" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hyperliquid/spotMarkets", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hyperliquid/spotMarkets", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "base": "PURR", "change": "", "changePercent": "", "circulatingSupply": "594657529.2896399498", "high": "", "low": "", "midPrice": "0.100295", "open": "", "prevDayPrice": "0.10122", "price": "0.10029", "quote": "USDC", "symbol": "PURR/USDC", "totalSupply": "594657540.5961600542", "updatedAt": "", "volume": "1474908.5471259998" }, { "base": "HFUN", "change": "", "changePercent": "", "circulatingSupply": "995707.28140787", "high": "", "low": "", "midPrice": "11.3035", "open": "", "prevDayPrice": "11.365", "price": "11.299", "quote": "USDC", "symbol": "@1", "totalSupply": "995707.33223403", "updatedAt": "", "volume": "22141.87864" } ], "meta": { "cached": false, "endpoint": "spotMarkets", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hyperliquid", "requestId": "req_2Xb9kQ…", "units": 1 } }
fundingHistory
/v1/hyperliquid/fundingHistoryHourly funding rate history of one perpetual market, newest last.
Parameters
coinstring required | Perpetual market name, such as BTC or ETH. e.g. BTC |
startTimeinteger | Unix time in milliseconds the history starts at. Defaults to 24 hours ago. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
coin | string |
items | FundingPoint[] |
fundedAt | string |
fundingRate | number (double) |
premium | number (double) |
curl "https://api.hoshime.com/v1/hyperliquid/fundingHistory?coin=BTC" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hyperliquid/fundingHistory?coin=BTC", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hyperliquid/fundingHistory?coin=BTC", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "coin": "BTC", "items": [ { "fundedAt": "2026-11-05T19:00:00Z", "fundingRate": 0.0000125, "premium": 0.0000765443 }, { "fundedAt": "2026-11-05T20:00:00Z", "fundingRate": 0.0000125, "premium": 0.0000969844 } ] }, "meta": { "cached": false, "endpoint": "fundingHistory", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "hyperliquid", "requestId": "req_2Xb9kQ…", "units": 1 } }
predictedFundings
/v1/hyperliquid/predictedFundingsPredicted next funding rate of perpetual markets on Hyperliquid and on other venues such as Binance and Bybit, optionally of one market.
Parameters
coinstring | Only this market, such as BTC. Empty for every market. e.g. BTC |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
5 fields
coin | string |
fundingIntervalHours | integer (int64) |
fundingRate | number (double) |
nextFundingAt | string |
venue | string |
curl "https://api.hoshime.com/v1/hyperliquid/predictedFundings?coin=BTC" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/hyperliquid/predictedFundings?coin=BTC", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/hyperliquid/predictedFundings?coin=BTC", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "coin": "…", "fundingIntervalHours": 0, "fundingRate": 0, "nextFundingAt": "2026-11-06T09:41:00Z", "venue": "…" } ], "meta": { "cached": false, "endpoint": "predictedFundings", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "hyperliquid", "requestId": "req_2Xb9kQ…", "units": 1 } }