[Integrations](https://spiral.ai/integrations) › [Cline](https://spiral.ai/integrations/cline) › [Hyperliquid order book](https://spiral.ai/integrations/cline/hyperliquid-order-book)

# How to Use Hyperliquid order book in Cline

Returns a current bid-and-ask snapshot with prices, sizes, and order counts, capped at 20 levels per side. Use it to measure spreads and visible liquidity rather than historical trading activity.

|  |  |
| --- | --- |
| Model | Hyperliquid order book |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Hyperliquid order book in Cline

- Use Hyperliquid order book to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Hyperliquid order book and tell me what changed since last week.
- Check Hyperliquid order book and summarize what you find in three bullet points.
- Pull the newest data from Hyperliquid order book and give me the result as a table.
- Check Hyperliquid order book every morning and tell me only when something changed.

## How to set up Hyperliquid order book in Cline

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: In the Cline panel, click the MCP Servers icon and open the Remote Servers tab. Enter:

```bash
cline mcp add spiral https://api.spiral.ai/mcp --transport http --yes
```

2. **Sign in**: Open the Configure tab and click Authenticate on the Spiral server. Sign in to Spiral, pick the organization and click Authorize. No API key.

3. **Check it**: Spiral shows as connected on the Configure tab. In the CLI:

```bash
cline config mcp
```

### Use the Spiral skill

1. **Send Cline this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Hyperliquid order book**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "hyperliquid-xyz/markets/order_book",
    "input": {
      "coin": "<coin>"
    }
  }'
```

Then paste one of the prompts above: Cline finds Hyperliquid order book on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/cline

## Hyperliquid order book tools and prices

- [Hyperliquid · Order book](https://spiral.ai/tools/alexandria/hyperliquid-xyz/markets/order_book) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| n_sig_figs | 2 to 5 | — | Aggregate price levels to this many significant figures; omit for full precision. |

## What can you do with Hyperliquid order book in Cline?

Build a Hyperliquid research dashboard that connects public vault accounting with market conditions. Use positions, executions, funding, and cash movements to explain changes in exposure and performance.

### Public vault daily review

Review a public vault's positions, trading results, funding payments, and cash movements alongside market conditions, visible liquidity, and funding expectations.

### Market conditions dashboard

Compare current market conditions with recent price action, historical funding, visible order-book liquidity, and upcoming funding expectations.

### Public vault stress review

Examine a public vault's exposure, recent trades, funding payments, and cash movements during a sharp market move, with liquidity and funding context.

### Public vault allocation review

Review a public vault's current exposure and recent accounting records together with the liquidity, funding conditions, and capacity restrictions of the markets it trades.

### Execution quality review

Review a public vault's execution prices and quantities against recent candles, then inspect current spreads and liquidity for a prospective repeat trade.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Cline guides](https://spiral.ai/integrations/cline)

## Hyperliquid order book in other agents

- [Amp](https://spiral.ai/integrations/amp/hyperliquid-order-book)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/hyperliquid-order-book)
- [Claude](https://spiral.ai/integrations/claude-desktop/hyperliquid-order-book)
- [Claude Code](https://spiral.ai/integrations/claude-code/hyperliquid-order-book)
- [Codex](https://spiral.ai/integrations/codex/hyperliquid-order-book)
- [Cursor](https://spiral.ai/integrations/cursor/hyperliquid-order-book)
- [Devin](https://spiral.ai/integrations/devin/hyperliquid-order-book)
- [dots](https://spiral.ai/integrations/dots/hyperliquid-order-book)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/hyperliquid-order-book)
- [Gemini](https://spiral.ai/integrations/gemini/hyperliquid-order-book)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/hyperliquid-order-book)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/hyperliquid-order-book)
- [goose](https://spiral.ai/integrations/goose/hyperliquid-order-book)
- [Grok](https://spiral.ai/integrations/grok/hyperliquid-order-book)
- [Grok Build](https://spiral.ai/integrations/grok-build/hyperliquid-order-book)
- [Hermes](https://spiral.ai/integrations/hermes/hyperliquid-order-book)
- [Instinct](https://spiral.ai/integrations/instinct/hyperliquid-order-book)
- [Manus](https://spiral.ai/integrations/manus/hyperliquid-order-book)
- [Muse](https://spiral.ai/integrations/muse/hyperliquid-order-book)
- [Muse Code](https://spiral.ai/integrations/muse-code/hyperliquid-order-book)
- [n8n](https://spiral.ai/integrations/n8n/hyperliquid-order-book)
- [Notion](https://spiral.ai/integrations/notion/hyperliquid-order-book)
- [OpenClaw](https://spiral.ai/integrations/openclaw/hyperliquid-order-book)
- [opencode](https://spiral.ai/integrations/opencode/hyperliquid-order-book)
- [Perplexity](https://spiral.ai/integrations/perplexity/hyperliquid-order-book)
- [Raycast](https://spiral.ai/integrations/raycast/hyperliquid-order-book)
- [VS Code](https://spiral.ai/integrations/vscode/hyperliquid-order-book)
- [Windsurf](https://spiral.ai/integrations/windsurf/hyperliquid-order-book)
- [Zapier](https://spiral.ai/integrations/zapier/hyperliquid-order-book)

## More Cline guides

- [Hyperliquid market data](https://spiral.ai/integrations/cline/hyperliquid-market-data)
- [Hyperliquid predicted funding rates](https://spiral.ai/integrations/cline/hyperliquid-predicted-funding-rates)
- [Hyperliquid historical funding rates](https://spiral.ai/integrations/cline/hyperliquid-historical-funding-rates)
- [Hyperliquid price candles](https://spiral.ai/integrations/cline/hyperliquid-price-candles)
- [Hyperliquid exchange overview](https://spiral.ai/integrations/cline/hyperliquid-exchange-overview)
- [Hyperliquid recent trades](https://spiral.ai/integrations/cline/hyperliquid-recent-trades)

## Questions about Hyperliquid order book in Cline

**Can Cline use Hyperliquid order book?**

Yes. Add Spiral to Cline as an MCP server, and Cline can find and run Hyperliquid order book like any built-in tool.

**How much does Hyperliquid order book cost in Cline?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Cline plan is separate.

**Do I need an Alexandria account to use Hyperliquid order book in Cline?**

No. Spiral runs Hyperliquid order book on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Hyperliquid order book in Cline?**

About two minutes: add the server, then sign in, then check it.

**Does Cline wait while Hyperliquid order book runs?**

Hyperliquid order book runs in the background. Cline starts the run, checks on it and gives you the json when it's ready.

**Where does Hyperliquid's trading data originate?**

HyperCore holds Hyperliquid's margin and matching-engine state, including its onchain order books.

**Does Hyperliquid provide unlimited trading history?**

No. Account fill history is limited to the latest 10,000 fills, with at most 2,000 returned per response.

**How far back does Hyperliquid candle data go?**

The candle snapshot method exposes only the latest 5,000 candles. The available history therefore depends on the duration of each candle.

**Are funding payments included in ordinary cash movements?**

Hyperliquid separates funding payments from non-funding ledger updates. Deposits, transfers, and withdrawals belong to the non-funding ledger.

**Are Hyperliquid liquidation prices guaranteed?**

The account response describes liquidation prices as estimates. A liquidation price may also be null when it does not apply to the position.

