Retrieve the most recent TWAP (Time-Weighted Average Price) slice fills for a specific user. Returns at most 2000 most recent TWAP slice fills with detailed execution information.
info
endpoint with type: "userTwapSliceFills"
retrieves a user’s TWAP (Time-Weighted Average Price) slice fills on the Hyperliquid exchange. This endpoint provides detailed information about individual fill executions that result from TWAP order slicing, enabling analysis of TWAP execution quality and performance.
type
(string, required) — The request type. Must be "userTwapSliceFills"
to retrieve TWAP slice fills.user
(string, required) — Address in 42-character hexadecimal format; e.g. 0x0000000000000000000000000000000000000000.fill
— Detailed fill information object (similar to regular fills)twapId
— Unique identifier for the TWAP order that generated this slice fillfill
object contains comprehensive execution information:
Core trade data:
coin
— Asset identifier (simple names like “BTC”, “ETH” for perpetuals; spot format like “@107” for spot trades)px
— Fill price as a string for precisionsz
— Fill size (quantity traded)side
— Trade side: “A” for Ask/Sell, “B” for Bid/Buytime
— Fill timestamp in millisecondsoid
— Order ID that generated this filltid
— Unique trade IDstartPosition
— Position size before this filldir
— Trade direction (e.g., “Open Long”, “Close Short”, “Buy”, “Sell”)closedPnl
— Realized profit/loss from this fillcrossed
— Boolean indicating if this was a crossing orderfee
— Trading fee paid for this fillfeeToken
— Token used to pay the fee (typically “USDC”)hash
— Transaction hash (TWAP fills have a hash of all zeros)twapId
— Links this fill to the parent TWAP orderhash
— Always “0x0000000000000000000000000000000000000000000000000000000000000000” for TWAP fillstwapId
if they’re from the same TWAP ordertwapId
groups all fills from the same TWAP ordertwapId
0x000...000
)twapId
info
endpoint with type: "userTwapSliceFills"
is essential for applications that need to:
Successful response with TWAP slice fills data
The response is of type object[]
.