userFills | Hyperliquid Info API
Info API
userFills | Hyperliquid Info API
Hyperliquid userFills: fetch a user’s most recent trade fills without specifying a time window.
POST
userFills | Hyperliquid Info API
Credit Cost
1 per call
Processing
Realtime
type: "userFills" is used to fetch a user’s most recent trade fills without specifying a time window.
- Wire-equal to
POST api.hyperliquid.xyz/infowith{"type": "userFills", "user": "..."}. - Each response contains at most 2,000 fills.
Endpoint
Request
string
required
Always
"userFills".string
required
The wallet address (lowercase 0x-prefixed hex).
boolean
When
true, partial fills sharing the same timestamp are consolidated into one row. Default false.Example
Response
An array of fill objects ordered most-recent-first.Field descriptions
All numeric fields (
px, sz, startPosition, closedPnl, fee, builderFee) are returned as decimal strings, preserving upstream precision. Do not parse them as floats - keep them as strings or use a fixed-precision decimal type.string
Asset symbol - e.g.
"BTC", "ETH" for perps; spot pairs use the @N form (e.g. "@107").string
Fill execution price.
string
Fill size.
string
"B" for buy/long, "A" for ask/short.int
Unix timestamp in milliseconds when the fill executed.
string
Signed position size on the same coin immediately before this fill.
string
Human-readable direction label - e.g.
"Open Long", "Close Short", "Buy", "Sell".string
Realized PnL in USDC attributable to this fill (zero when the fill opens or extends a position).
string
L1 transaction hash that included this fill.
int
Parent order ID.
int
Unique trade ID.
boolean
true when the fill came from the taker side of the order, false when it was the maker side.string
Trading fee paid for this fill, denominated in
feeToken.string
Symbol the fee was paid in - typically
"USDC".string
Optional. Builder fee paid for this fill if the order routed through a builder code.
int | null
Optional TWAP order ID if this fill is a slice of a TWAP order.
string | null
Optional client order ID if one was set at order placement.
Related endpoints
userFillsByTime
fetch a user’s trade fills within a time window for P&L recaps and tax ledger reconstruction.
userTwapSliceFills
fetch a user’s most recent TWAP slice fills for execution-quality analytics on algorithmic orders.
userTwapSliceFillsByTime
fetch a user’s TWAP slice fills within a time window for execution-quality reconciliation on algorithmic…
builderFills
fetch a builder’s most recent attributed trade fills for revenue attribution and order-flow analytics.