Hyperliquid Get Order History logo

Catalog action Hyperliquid wallet

Get recent trade fills and resting orders for a Hyperliquid account. Returns fill history (size, price, PnL, fees) and resting orders for the requested DEX (defaults to crypto perps; pass dex for HIP-3 venues). Ideal for: trade journal tracking, fill alerts, order monitoring, and portfolio analytics.

At a Glance

FieldValue
Action IDhyperliquid-get-order-history
CategoryHyperliquid
Connectorwallet
Requires gasNo
Funds movementNone declared
Tagshyperliquid, perps, order, history, trade, trading

Payload Schema

FieldTypeRequiredDescription
startTimenumberNoUnix timestamp in milliseconds. When provided, fills are queried via userFillsByTime (supports endTime). Omit for the most recent userFills response (Hyperliquid caps this at ~2000).
endTimenumberNoUnix timestamp in milliseconds. Upper bound for fills, applied only when startTime is set. Ignored if startTime is omitted.
limitnumberNoMaximum number of fills to return after sorting (newest first). Defaults to 500, hard cap 2000. openOrders are never truncated.
dexstringNoHIP-3 DEX name for TradFi markets. Omit for standard crypto perps. xyz = trade.xyz (stocks, indices, commodities), flx = flx.finance, vntl = vntl.exchange

Result Schema

FieldTypeRequiredDescription
errorsobjectNoSet when one of the two upstream calls (fills, openOrders) fails. The successful side still returns data; the failed side is an empty array. Both failing surfaces a hard error instead.
fillsarrayYesRecent trade fills sorted by time (newest first), capped by limit
openOrdersarrayYesCurrently resting orders for the requested DEX, sorted by timestamp (newest first)

Examples

json
{ "type": "hyperliquid-get-order-history", "payload": { "startTime": 1, "endTime": 1, "limit": 1, "dex": "xyz" }, "children": [], "connector": { "type": "wallet", "id": "conn_wallet" }}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.

Ask a question... ⌘I