v1

latestOpenAPI 3.1.02026-07-2681217214.1 KB

Get user fills

Retrieve fill data for a user including regular fills and TWAP slice fills

post/api/v1/developer/trading/hyperliquid/info/fills

Request body

type'userFills' | 'userFillsByTime' | 'userTwapSliceFills' required

Type of fills to retrieve. Applies to all request types.

userstring required

User's wallet address (hex string). Applies to all request types.

startTimeinteger

Start time filter (Unix timestamp in milliseconds). Required for userFillsByTime. Only applies to userFillsByTime.

endTimeinteger

End time filter (Unix timestamp in milliseconds). Only applies to userFillsByTime.

aggregateByTimeboolean

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.

twapMode'none' | 'include' | 'only'

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.

Response

Fills retrieved successfully

closedPnlstring nullable

Realized PnL from closing a position with this fill

coinstring nullable

Trading pair symbol (e.g., BTC, ETH)

crossedboolean nullable

Whether the order crossed the spread (i.e., was a taker order)

dirstring nullable

Direction description (e.g., Open Long, Close Short, Buy, Sell)

hashstring nullable

Transaction hash

oidinteger nullable

Order ID

pxstring nullable

Execution price

sidestring nullable

Order side: B (buy) or A (sell)

startPositionstring nullable

Position size before this fill was executed

szstring nullable

Fill size

timeinteger nullable

Fill timestamp (Unix timestamp in milliseconds)

feestring nullable

Trading fee amount

feeTokenstring nullable

Token used for fee payment

tidinteger nullable

Unique trade ID

builderFeestring nullable

Builder fee if order was routed through a builder

builderAddressstring nullable

Address of the builder if applicable

twapIdinteger nullable

TWAP order ID if this fill is part of a TWAP order