BlogDeveloper

How to Build an Order Flow Dashboard for Hyperliquid

Build a Hyperliquid order flow dashboard: buy and sell volume from the trade stream, who is behind each trade, and backfilling the last 24 hours. Tested.

HydromancerTeam
How to Build an Order Flow Dashboard for Hyperliquid

Order flow is who is buying and who is selling, right now, and how hard. On most exchanges you can see that someone bought $5M of BTC. On Hyperliquid you can see who. Every trade in the public feed carries both wallet addresses, so an order flow dashboard built here shows not just buy and sell pressure per minute but which wallets are pushing it. When we checked, $2.08B had traded on Hyperliquid's main perp markets in 24 hours, by Hyperliquid's own volume figures, and every one of those trades named its buyer and seller.

This guide builds the dashboard's core number, BTC buy and sell volume per minute, and shows where the free feed runs out: it starts when you connect, and a trader who opens the page at 3 pm wants the morning too.

Why build it on Hyperliquid

• Every trade names both wallets, so flow can be grouped by trader, not just by side: the same wallet buying again and again, a known trader flipping short, a cluster of liquidations.
• The live feed is free. Hyperliquid's trades stream needs no sign-up or API key.
• Forced selling is in the same feed. Liquidations arrive as trades, so they show up as flow.

One trade, two addresses

One BTC trade from Hyperliquid's trade feed, with its side, price, size and both buyer and seller wallets, powers every order flow panel: footprint, cumulative volume delta, imbalance, large prints and who is behind the flow.

Hyperliquid's trades stream sends each trade with its price, size, the taker's side and both addresses. The REST version, recentTrades, shows the same shape:

code
import requests

trades = requests.post("https://api.hyperliquid.xyz/info",
                       json={"type": "recentTrades", "coin": "BTC"}).json()
for t in trades[:3]:
    print(t["side"], t["sz"], "@", t["px"], "buyer, seller:", t["users"])
print(len(trades), "trades returned")
code
A 0.00157 @ 77420.0 buyer, seller: ['0x706bb519b05b7dc01d048af9a5e29d1ef5d6d9e3', '0x0c684f333a7e120bce61383da670bbb0157e82d0']
B 0.00031 @ 77421.0 buyer, seller: ['0xe642e0504b53c3d06438e57b90bc8fca6f2fa603', '0xdda7f4805dfdf145a74cd68992d90780f73cf6c7']
A 0.00019 @ 77420.0 buyer, seller: ['0x706bb519b05b7dc01d048af9a5e29d1ef5d6d9e3', '0xde2264ea8cf73e9acb39054fce49dc5e6fe54119']
10 trades returned

side is the taker: B means the aggressor bought, A means it sold. users is [buyer, seller]. That's all a live dashboard needs, and it's free.

Buy and sell volume, minute by minute

The panels order flow traders look for are all built from the same trades:

• Footprint. Buy and sell volume at each price inside every candle, so you see where the fighting happened.
• Cumulative volume delta (CVD). Buys minus sells, added up over time.
• Imbalance. Prices where one side traded far more than the other.
• Large prints. Single trades, or groups of trades from one taker, above a size you set.

Sum the dollar value of B trades and A trades per minute and you have buy and sell volume. Their difference is delta; add it up over time and you have cumulative delta, the line order flow traders watch for a move running out of steam.

Live from the moment you connect

The trades stream has everything a live dashboard needs, and it's free. This prototype listens to BTC for three minutes and adds up each minute (pip install websockets):

code
import json, time, collections
from websockets.sync.client import connect

flow, start = collections.Counter(), time.time()
with connect("wss://api.hyperliquid.xyz/ws") as ws:
    ws.send(json.dumps({"method": "subscribe", "subscription":
                        {"type": "trades", "coin": "BTC"}}))
    while time.time() < start + 180:
        m = json.loads(ws.recv())
        for t in m["data"] if m["channel"] == "trades" else []:
            if t["time"] >= start * 1000:     # skip trades sent on subscribe
                usd = float(t["px"]) * float(t["sz"])
                flow[t["time"] // 60000, t["side"]] += usd
for (minute, side), usd in sorted(flow.items()):
    print(time.strftime("%H:%M", time.gmtime(minute * 60)), side, round(usd))
code
19:35 A 13063
19:35 B 200368
19:36 A 18142
19:36 B 3545
19:37 A 3454
19:37 B 1859
19:38 A 128
19:38 B 171

It works from the moment you connect. The gap is what happened before: when a user opens the dashboard at 3 pm, they want the morning too. Hyperliquid's REST version, recentTrades, returned only the last 10 trades, and the stream sends a short batch of recent trades when you subscribe, not the session. On Hyperliquid alone, a backfill means keeping your own recorder running all day, or downloading its S3 archive (below).

Backfilling the last hour

tradesByTime pages through the last 24 hours, up to 2,000 trades per page, in the same shape as the stream. This prototype builds the last hour's per-minute flow, then a dashboard switches to the live stream:

code
import os, time, collections, requests

H = {"Authorization": "Bearer " + os.environ["HYDROMANCER_API_KEY"]}
base = {"type": "tradesByTime", "coin": "BTC", "limit": 2000}
body = {**base, "startTime": int(time.time() * 1000) - 3600000}
flow = collections.Counter()
while body:
    r = requests.post("https://api.hydromancer.xyz/info", headers=H,
                      json=body).json()
    for t in r["trades"]:
        flow[t["time"] // 60000, t["side"]] += float(t["px"]) * float(t["sz"])
    body = r["hasMore"] and {**base, "cursor": r["cursor"]}
for (minute, side), usd in sorted(flow.items()):
    print(time.strftime("%H:%M", time.gmtime(minute * 60)), side, round(usd))
code
19:04 A 1000
19:04 B 36
19:05 A 1475532
19:05 B 7544
19:06 A 59270
19:06 B 55356
... (116 more lines)

How we tested. We built the dashboard's core number, BTC buy and sell volume per minute, on both APIs and ran them side by side on 31 October 2026. The snippets are prototypes that prove each step works, not an app to copy as is; the request bodies and URLs are exact.

tradesByTime and the order-by-order L4 book below are Hydromancer endpoints, not part of Hyperliquid's own API. Orders still go to Hyperliquid.

Side by side

Hyperliquid trades stream Hydromancer tradesByTime
What you getFlow from the moment you connectThe last hour at once, up to 24 hours back
Time181 s (it listens live by design)0.7 s
Rate-limit costNone (live stream)30 points of 20,000/min (Growth plan)

They do different jobs, and a real dashboard uses both: Hydromancer to fill the last 24 hours when the page opens, and either live stream after that. Because the shapes match, the same code adds up both. Open the live stream first, then backfill, and skip any trade you've already counted (match on time and tid; every trade from both feeds carries tid, time, hash and users), so the join has no gap and no double count.

For older days, Hyperliquid's own S3 archive (node_fills_by_block) and Reservoir's daily files both have every fill with both addresses. Reservoir's files start in August 2025 and cost only AWS download charges.

Who is behind the flow

Because users names both sides, your dashboard can group flow by wallet: the top ten wallets by taker volume in the last hour, or a flag when a wallet that just bought $5M also holds a large position. Pair this with our whale tracker for positions and our liquidation guide for forced selling, which shows up as flow too. In the three trades printed above, the same wallet, 0x706b…d9e3, was the buyer on two of them, resting on the bid while takers sold into it. That is the kind of repeat a dashboard should surface.

Two cautions for the copy on your dashboard:

• One side of a trade is often a market maker. Big taker flow from a wallet means that wallet was aggressive, not that it's a "whale" making a bet.
• A big market order fills against many resting orders, so it arrives as many small trades with the same taker and time. Group them before you call something a "large trade".

What's waiting in the book

Trades show what executed. The order book shows what's waiting.

Hyperliquid API

The l2Book stream gives 20 price levels a side, with total size per level. To see individual orders and who placed them, you'd run your own node with --write-raw-book-diffs and rebuild the book with Hyperliquid's example order_book_server.

Hydromancer API

The order-by-order L4 book shows each resting limit order with its owner, so you can see the same wallet pulling and re-placing orders.

Seeing one wallet pull and re-place a wall of orders is the kind of signal order flow traders pay for. Our orderbook types guide explains the trade-offs.

Sell the dashboard as a subscription, or put these panels inside a trading terminal so users can trade straight from the tape, with your builder code on every order.

FAQ

Can I see who made a trade on Hyperliquid?

Yes. Every trade in the trades stream includes the buyer's and seller's addresses.

How do I tell buys from sells on Hyperliquid?

The side field is the taker's side: B means the aggressor bought, A means it sold.

How do I get the last few hours of trades?

Hyperliquid's recentTrades returns only the most recent handful. Hydromancer's tradesByTime pages through the last 24 hours; Hyperliquid's S3 archive and Reservoir have older days.

• Hyperliquid data feeds: every real-time stream
• BBO vs L2Book vs L4Book
• Hyperliquid whale tracker
• How to build a Hyperliquid orderbook heatmap

Sources

- Hyperliquid docs: Subscriptions, Info endpoint
- Hydromancer docs: tradesByTime, L4 orderbook streaming

Continue