# Hyperliquid API

> Returns Hyperliquid perpetual and spot market data: mid prices, metadata, order books, candles, funding rates and volume.

Category: Finance & Crypto. Region: global. 9 endpoints at `https://api.hoshime.com/v1/hyperliquid/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/hyperliquid
## GET /v1/hyperliquid/mids

Mid price of every perpetual and spot market, sorted by coin.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `coin` (string), `price` (string)

```bash
curl "https://api.hoshime.com/v1/hyperliquid/mids" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/hyperliquid/meta

Perpetual markets of Hyperliquid with their size decimals and maximum leverage.

Scope: `social:read` · Units: 1 · Cached: 60 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `isDelisted` (boolean), `maxLeverage` (integer (int64)), `name` (string), `szDecimals` (integer (int64))

```bash
curl "https://api.hoshime.com/v1/hyperliquid/meta" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/hyperliquid/orderBook

Top 20 bid and ask levels of one market, best price first.

Scope: `social:read` · Units: 1

| Parameter | Type | Required | Description |
|---|---|---|---|
| `coin` | string | yes | Market name, such as BTC or ETH. (e.g. BTC) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `asks` (Level[]), `asks[].orders` (integer (int64)), `asks[].price` (string), `asks[].size` (string), `bids` (Level[]), `bids[].orders` (integer (int64)), `bids[].price` (string), `bids[].size` (string), `coin` (string), `time` (string)

```bash
curl "https://api.hoshime.com/v1/hyperliquid/orderBook?coin=BTC" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/hyperliquid/trades

The most recent trades of one Hyperliquid market, with price, size and side.

Scope: `social:read` · Units: 1 · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `coin` | string | yes | Market name, such as BTC or ETH. (e.g. BTC) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `hash` (string), `id` (string), `price` (string), `side` (string), `size` (string), `tradedAt` (string)

```bash
curl "https://api.hoshime.com/v1/hyperliquid/trades?coin=BTC" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/hyperliquid/candles

The latest OHLC candles of one market, oldest first.

Scope: `social:read` · Units: 1 · Cached: 1 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `coin` | string | yes | Market name, such as BTC or ETH. (e.g. BTC) |
| `interval` | string | no | Candle length, such as 1h or 1d. (one of 1m, 3m, 5m, 15m, 30m, 1h, 2h, 4h, 8h, 12h, 1d, 3d, 1w, 1M; default 1h) |
| `latest` | integer | no | Number of latest candles, from 1 to 500. (default 100) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `coin` (string), `interval` (string), `items` (Candle[]), `items[].close` (string), `items[].high` (string), `items[].low` (string), `items[].open` (string), `items[].openedAt` (string), `items[].trades` (integer (int64)), `items[].volume` (string)

```bash
curl "https://api.hoshime.com/v1/hyperliquid/candles?coin=BTC" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/hyperliquid/perpMarkets

Every perpetual futures market with its mark, oracle and mid price, funding rate, open interest and 24-hour volume.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 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)

```bash
curl "https://api.hoshime.com/v1/hyperliquid/perpMarkets" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/hyperliquid/spotMarkets

Every spot trading pair with its mark and mid price, 24-hour volume and token supply.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 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)

```bash
curl "https://api.hoshime.com/v1/hyperliquid/spotMarkets" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/hyperliquid/fundingHistory

Hourly funding rate history of one perpetual market, newest last.

Scope: `social:read` · Units: 1 · Cached: 5 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `coin` | string | yes | Perpetual market name, such as BTC or ETH. (e.g. BTC) |
| `startTime` | integer | no | Unix time in milliseconds the history starts at. Defaults to 24 hours ago. |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `coin` (string), `items` (FundingPoint[]), `items[].fundedAt` (string), `items[].fundingRate` (number (double)), `items[].premium` (number (double))

```bash
curl "https://api.hoshime.com/v1/hyperliquid/fundingHistory?coin=BTC" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/hyperliquid/predictedFundings

Predicted next funding rate of perpetual markets on Hyperliquid and on other venues such as Binance and Bybit, optionally of one market.

Scope: `social:read` · Units: 1 · Cached: 1 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `coin` | string | no | Only this market, such as BTC. Empty for every market. (e.g. BTC) |
| `tunnel` | string | no | 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. |
| `proxy` | string | no | 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. |
| `profileId` | string | no | 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 fields: `coin` (string), `fundingIntervalHours` (integer (int64)), `fundingRate` (number (double)), `nextFundingAt` (string), `venue` (string)

```bash
curl "https://api.hoshime.com/v1/hyperliquid/predictedFundings?coin=BTC" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
