How to Use Hyperliquid order book in Windsurf
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.
Prompts to try with Hyperliquid order book in Windsurf
Copy an example into Windsurf, or ask in your own words.
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 Windsurf
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: ~/.config/devin/mcp_config.json on macOS and Linux, %APPDATA%\devin\mcp_config.json on Windows. Add this:
{ "mcpServers": { "spiral": { "url": "https://api.spiral.ai/mcp" } } } - Sign in
Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.
devin mcp login spiral
- Check it
Spiral is listed under This computer in Customize › MCPs. From the terminal:
devin mcp list
Use the Spiral skill
- Send Windsurf this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run Hyperliquid order book
One request; the result comes back by polling or a webhook.
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: Windsurf finds Hyperliquid order book on Spiral, shows the price and runs it.
Hyperliquid order book providers and prices
Spiral runs Hyperliquid order book through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Windsurf for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| N sig figs | 2 to 5 | Aggregate price levels to this many significant figures; omit for full precision. |
Every API field of Hyperliquid · Order book is on its tool page: open its card above.
What can you do with Hyperliquid order book in Windsurf?
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.
More on Hyperliquid order book and Windsurf
Overview
Hyperliquid order book in other agents
Questions about Hyperliquid order book in Windsurf
Can Windsurf use Hyperliquid order book?
Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run Hyperliquid order book like any built-in tool.
How much does Hyperliquid order book cost in Windsurf?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Windsurf plan is separate.
Do I need an Alexandria account to use Hyperliquid order book in Windsurf?
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 Windsurf?
About two minutes: add the server, then sign in, then check it.
Does Windsurf wait while Hyperliquid order book runs?
Hyperliquid order book runs in the background. Windsurf 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.
Start using Hyperliquid order book in Windsurf
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Windsurf:
set up https://spiral.ai/SKILL.md


