[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [Hyperliquid account positions](https://spiral.ai/integrations/n8n/hyperliquid-account-positions)

# How to Use Hyperliquid account positions in n8n

Returns open perpetual positions, margin summaries, unrealized profit or loss, and estimated liquidation prices for an address. Use it to review a public vault's current exposure before examining its trading history.

|  |  |
| --- | --- |
| Model | Hyperliquid account positions |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with Hyperliquid account positions in n8n

- Every morning, use Hyperliquid account positions for the public vault 0xc179e03922afe8fa9533d3f896338b9fb87ce0c8 and report changes in open positions since the previous check.
- Every Monday at 9am: use Hyperliquid account positions to look this up and give me the result as a table.
- Pull the latest numbers from Hyperliquid account positions and tell me what changed since last week.
- Check Hyperliquid account positions and summarize what you find in three bullet points.
- Pull the newest data from Hyperliquid account positions and give me the result as a table.

## How to set up Hyperliquid account positions in n8n

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

### Use the Spiral skill

1. **Send n8n 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 Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run Hyperliquid account positions in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Hyperliquid account positions, prices it and runs it each time the step fires.

### 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 account positions**: 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/account",
    "input": {
      "address": "<address>"
    }
  }'
```

Then paste one of the prompts above: n8n finds Hyperliquid account positions on Spiral, shows the price and runs it.

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

## Hyperliquid account positions tools and prices

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

## What can you do with Hyperliquid account positions in n8n?

Maintain a daily Hyperliquid research log for public vault activity and market conditions. Compare successive observations to flag changes in exposure, executions, funding, cash movements, or liquidity.

### 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.

### Vault performance reconciliation

Separate realized trading results, funding income or expense, and external cash movements when reviewing a public vault's performance.

### 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.

### Funding contribution analysis

Compare a public vault's actual funding payments with historical market rates and upcoming expectations, while separating trading results and cash movements.

### 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 n8n guides](https://spiral.ai/integrations/n8n)

## Hyperliquid account positions in other agents

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

## More n8n guides

- [Hyperliquid account funding payments](https://spiral.ai/integrations/n8n/hyperliquid-account-funding-payments)
- [Hyperliquid account trade history](https://spiral.ai/integrations/n8n/hyperliquid-account-trade-history)
- [Hyperliquid account cash movements](https://spiral.ai/integrations/n8n/hyperliquid-account-cash-movements)
- [Hyperliquid exchange overview](https://spiral.ai/integrations/n8n/hyperliquid-exchange-overview)
- [GlobeNewswire press release text](https://spiral.ai/integrations/n8n/globenewswire-press-release-text)
- [Hyperliquid historical funding rates](https://spiral.ai/integrations/n8n/hyperliquid-historical-funding-rates)

## Questions about Hyperliquid account positions in n8n

**Can n8n use Hyperliquid account positions?**

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run Hyperliquid account positions like any built-in tool.

**How much does Hyperliquid account positions cost in n8n?**

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

**Do I need an Alexandria account to use Hyperliquid account positions in n8n?**

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs Hyperliquid account positions on its own Alexandria account.

**How long does it take to set up Hyperliquid account positions in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while Hyperliquid account positions runs?**

Hyperliquid account positions runs in the background. n8n 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.

