userFills, userFillsByTime and userTwapSliceFills endpoints in Hyperliquid.
The userFillsByTime endpoint does not have any limits on historical data retrieval.Authorizations
Body
Type of fills to retrieve. Applies to all request types.
userFills, userFillsByTime, userTwapSliceFills User's wallet address (hex string). Applies to all request types.
Start time filter (Unix timestamp in milliseconds). Required for userFillsByTime. Only applies to userFillsByTime.
End time filter (Unix timestamp in milliseconds). Only applies to userFillsByTime.
When true, aggregates multiple fills from the same order at the same timestamp into a single fill with combined size, weighted average price, and summed fees/PnL. Only applies to userFills and userFillsByTime.
Controls TWAP fill filtering: 'none' (default) excludes TWAP fills, 'include' returns both regular and TWAP fills, 'only' returns only TWAP fills. Only applies to userFills and userFillsByTime.
none, include, only Response
Fills retrieved successfully
Realized PnL from closing a position with this fill
Trading pair symbol (e.g., BTC, ETH)
Whether the order crossed the spread (i.e., was a taker order)
Direction description (e.g., Open Long, Close Short, Buy, Sell)
Transaction hash
Order ID
Execution price
Order side: B (buy) or A (sell)
Position size before this fill was executed
Fill size
Fill timestamp (Unix timestamp in milliseconds)
Trading fee amount
Token used for fee payment
Unique trade ID
Present only for liquidation fills. Contains liquidation details
Builder fee if order was routed through a builder
Address of the builder if applicable
TWAP order ID if this fill is part of a TWAP order