How to Use Hyperliquid recent trades in Grok Build
Fetch recent executed trades for a Hyperliquid market, including price, size, side, timestamp, and transaction hash. Use it to inspect the latest BTC or ETH trading activity and calculate summaries of the returned trades.
Prompts to try with Hyperliquid recent trades in Grok Build
Copy an example into Grok Build, or ask in your own words.
Use Hyperliquid recent trades for BTC and add an execution table to my project with time, size, and aggressor side.
Use Hyperliquid recent trades for ETH and add a calculation of total returned size by buy and sell aggressor side.
Use Hyperliquid recent trades for SOL and build a collector that deduplicates snapshots using block time, coin, and trade ID.
Use Hyperliquid recent trades to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from Hyperliquid recent trades and tell me what changed since last week.
How to set up Hyperliquid recent trades in Grok Build
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Add --scope project to add Spiral to the current repository only. No header and no client ID or secret: Grok registers itself with Spiral.
grok mcp add --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start grok and run /mcps. Select Spiral and press i. Your browser opens: sign in to Spiral, pick the organization and click Authorize. No API key.
- Check it
grok mcp doctor spiral
Use the Spiral skill
- Send Grok Build 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 recent trades
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/recent_trades", "input": { "coin": "<coin>" } }'
Then paste one of the prompts above: Grok Build finds Hyperliquid recent trades on Spiral, shows the price and runs it.
Hyperliquid recent trades providers and prices
Spiral runs Hyperliquid recent trades through Alexandria. Open a card for today's price, with every fee included.
What can you do with Hyperliquid recent trades in Grok Build?
Build a Hyperliquid research view with a recent execution tape or a chart of vault account value. A coding agent can turn returned trade records and timestamped vault histories into components in your project.
Inspect the latest BTC executions
Turn returned BTC trades into a readable tape showing execution time, size, and aggressor side.
Compare buying and selling in an ETH snapshot
Sum the returned ETH trade sizes by aggressor side and report the time span covered by the sample.
Find large SOL prints
Rank returned SOL executions by size and show the timestamps and transaction hashes for the largest trades.
Build a sampled trade archive
Collect successive BTC snapshots and remove duplicates using block time, market, and trade ID. Describe the result as sampled observations.
More on Hyperliquid recent trades and Grok Build
Overview
Hyperliquid recent trades in other agents
Questions about Hyperliquid recent trades in Grok Build
Can Grok Build use Hyperliquid recent trades?
Yes. Add Spiral to Grok Build as an MCP server, and Grok Build can find and run Hyperliquid recent trades like any built-in tool.
How much does Hyperliquid recent trades cost in Grok Build?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Grok Build plan is separate.
Do I need an Alexandria account to use Hyperliquid recent trades in Grok Build?
No. Spiral runs Hyperliquid recent trades 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 recent trades in Grok Build?
About two minutes: add the server, then sign in, then check it.
Does Grok Build wait while Hyperliquid recent trades runs?
Hyperliquid recent trades runs in the background. Grok Build starts the run, checks on it and gives you the json when it's ready.
Where does Hyperliquid's API data come from?
Hyperliquid API servers listen to node updates and maintain blockchain state locally. The API serves information about that locally maintained state.
What does the data cover?
Hyperliquid recent trades covers executed trades for a market, including execution price and size. Hyperliquid vault details covers vault performance through reported APR and timestamped account-value and profit-and-loss histories.
Does Hyperliquid return historical data?
Recent trades returns a recent snapshot ordered newest first. Vault portfolio data has period labels including week, month, and all-time, with timestamped observations inside the returned histories.
How can I judge the age of the returned observations?
Trade timestamps identify execution time in Unix milliseconds. Vault account-value and profit-and-loss histories pair each observation with a timestamp, so their dates can be inspected directly.
Are the returned figures executions or estimates?
Recent trade prices describe executed transactions. Vault APR is a projection of yearly return based on recent performance, while the vault histories contain timestamped account-value and profit-and-loss observations.
Start using Hyperliquid recent trades in Grok Build
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Grok Build:
set up https://spiral.ai/SKILL.md


