POST request to the Hyperliquid Info endpoint with type set to userTwapSliceFills and the target account's user address. The endpoint returns at most 2,000 most recent TWAP slice fills.
Source: Hyperliquid Info endpoint documentation.
Request
Endpoint:
POST https://api.hyperliquid.xyz/info
Header:
| Name | Value |
|---|---|
Content-Type | application/json |
| Field | Type | Required | Description |
|---|---|---|---|
type | String | Yes | userTwapSliceFills |
user | String | Yes | Account address in 42-character hexadecimal format |
{
"type": "userTwapSliceFills",
"user": "0x0000000000000000000000000000000000000000"
}
Use the actual master or sub-account address you want to query. The documentation notes that using an agent wallet address can return an empty result.
Like what you're reading? Try it yourself โ this link supports ChartedTrader at no cost to you.
Open a Hyperliquid account with a 4% fee discount on the first $25M of volume; Vaults and sub-accounts are excluded. โResponse shape
The response is an array. Each item contains a fill object and a twapId value.
Example response:
[
{
"fill": {
"closedPnl": "0.0",
"coin": "AVAX",
"crossed": true,
"dir": "Open Long",
"hash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"oid": 90542681,
"px": "18.435",
"side": "B",
"startPosition": "26.86",
"sz": "93.53",
"time": 1681222254710,
"fee": "0.01",
"feeToken": "USDC",
"tid": 118906512037719
},
"twapId": 3156
}
]
Response fields
| Field | Type in example | Meaning |
|---|---|---|
fill.closedPnl | String | Closed PnL associated with the fill |
fill.coin | String | Asset identifier |
fill.crossed | Boolean | Whether the fill crossed the spread |
fill.dir | String | Position direction, such as Open Long |
fill.hash | String | Fill hash; the documentation notes that TWAP fills have a hash of 0 |
fill.oid | Number | Order ID |
fill.px | String | Fill price |
fill.side | String | Side, such as B or A |
fill.startPosition | String | Position before the fill |
fill.sz | String | Fill size |
fill.time | Number | Fill time in epoch milliseconds |
fill.fee | String | Fee amount |
fill.feeToken | String | Fee token |
fill.tid | Number | Trade ID |
twapId | Number | TWAP identifier associated with the slice fill |
Related references
- Hyperliquid twapOrder and twapCancel API
- Hyperliquid Info Endpoint: User Open Orders, Fills, Rate Limits, and Order Status
- Hyperliquid TWAP Dynamic Suborder Interval
Continue with Hyperliquid
Browse the Hyperliquid guide hub for the complete user journey.