> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hiveintelligence.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# Track your Hyperliquid account and markets with an AI agent

> Check positions, liquidation distance, open orders, PnL and funding on Hyperliquid and trade.xyz from Claude Code, Grok or the hive CLI.

If you trade perps on Hyperliquid, three calls cover the day: your account, one market, and
what is moving. They read Hyperliquid's own API, cover the main venue and builder venues such
as trade.xyz, and never need a wallet signature. Hive only reads, by address.

## How is my account?

> How are my Hyperliquid positions on 0x…? How close is anything to liquidation, and what
> stops do I have resting?

```json theme={null}
{ "address": "0x…", "include": ["perps"] }
```

```bash theme={null}
hive wallet 0x… --include perps
```

That call costs 2 credits and returns:

| Part | What it tells you |
| - | - |
| `summary` | Account value, total position size, unrealized PnL, how many positions and orders, and the position closest to liquidation |
| `venues` | One margin account per venue: `hyperliquid` is the main venue, `hyperliquid:xyz` is trade.xyz |
| `positions` | Side, size, entry and mark price, PnL, leverage, margin mode, liquidation price, and `liquidation_distance_percent`: how far the mark has to move against you |
| `open_orders` | Stops and take-profits first, then the newest limit orders |
| `spot_balances` | Hyperliquid spot balances. Under unified margin the USDC here backs your perps |

`liquidation_price` is `null` when Hyperliquid reports none, which means the account margin
covers the position. `funding_paid_since_open_usd` is positive when the position paid funding
and negative when it earned it. Anything that could not be read is named under `not_read`.

## How have I been trading?

> What is my Hyperliquid PnL this week, how much did I pay in funding today, and was I
> liquidated on anything?

```json theme={null}
{ "address": "0x…", "include": ["perps", "perp_history"] }
```

`perp_history` adds 1 credit:

| Part | What it tells you |
| - | - |
| `pnl` | Perp PnL and volume for the day, week, month and all time, as Hyperliquid computes them |
| `fills` | Your most recent fills, with realized PnL and fees summed over them. `covers_from` says how far back they reach |
| `fills.liquidations` | The fills where your account was the one liquidated |
| `funding_24h` | Net funding over the last 24 hours and the coins behind it. Negative means you paid |

A very active account has more fills than one read returns. `is_partial` is then `true` and
the fill totals are a floor. The `pnl` figures are always complete.

The same two sections work for any address, so you can watch another trader the same way.

## What is one market doing?

> How is HYPE positioned on Hyperliquid compared with Binance?

```json theme={null}
{ "asset": "HYPE" }
```

```bash theme={null}
hive positioning HYPE
```

[`market_positioning`](https://docs.hiveintelligence.xyz/guides/market-intelligence) puts Hyperliquid next to the centralized
exchanges: funding on Binance, Bybit, OKX, Bitget and Hyperliquid, open interest per venue
with Hyperliquid in the list, and under `onchain_venues` the Hyperliquid market itself: mark
and oracle price, premium, hourly and annualized funding, open interest, 24h volume, 24h
change, maximum leverage and the price a large market order would get. For a tokenized stock
such as `NVDA`, the same section lists trade.xyz and the other builder venues.

Add `predicted_funding` for the next funding rate on Hyperliquid, Binance and Bybit.

## What is moving on Hyperliquid?

> What are the biggest movers and the most extreme funding rates on Hyperliquid right now?

```json theme={null}
{ "sections": ["perps"] }
```

```bash theme={null}
hive overview --sections perps
```

The `perps` section of `market_overview` screens the 50 busiest markets on the main venue:
top by volume, top by open interest, gainers, losers, and the highest and lowest funding. It
also lists the busiest builder-venue markets, such as the stock perps on trade.xyz.

## What is not covered yet

Liquidations across the whole Hyperliquid market are not in the `liquidations` section, which
today totals Binance, Bybit and OKX. Hyperliquid has no public feed of every liquidation, so
that needs a collector of its own. Your own liquidations are covered, under `perp_history`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.