{
"channel": "twapUpdates",
"data": {
"isSnapshot": true,
"user": "0x1111111111111111111111111111111111111111",
"twaps": [
{
"twapId": "0x1a2b3c...",
"status": "active",
"asset": "BTC",
"side": "buy",
"totalSz": "0.25",
"filledSz": "0.10",
"remainingSz": "0.15",
"reduceOnly": false,
"slicesFilled": 2,
"slicesPartial": 0,
"slicesRejected": 0,
"totalNotional": "5030.0",
"avgFillPx": "50300",
"durationMs": 1800000,
"sliceIntervalMs": 300000,
"createdAt": 1701234567890,
"startedAt": 1701234567890,
"expectedEndAt": 1701236367890,
"currentSliceIndex": 2,
"totalExpectedSlices": 7,
"randomize": true,
"updatedAt": 1701235167890
}
]
}
}
{
"channel": "twapUpdates",
"data": {
"isSnapshot": false,
"user": "0x1111111111111111111111111111111111111111",
"twaps": [
{
"twapId": "0x1a2b3c...",
"status": "completed_partial",
"asset": "BTC",
"side": "buy",
"totalSz": "0.25",
"filledSz": "0.20",
"remainingSz": "0.05",
"reduceOnly": false,
"slicesFilled": 4,
"slicesPartial": 1,
"slicesRejected": 1,
"totalNotional": "10050.000000",
"avgFillPx": "50250.000000",
"durationMs": 1800000,
"sliceIntervalMs": 300000,
"startedAt": 1701234567890,
"expectedEndAt": 1701236367890,
"currentSliceIndex": 6,
"totalExpectedSlices": 7,
"randomize": true,
"createdAt": 1701234567890,
"updatedAt": 1701236367890,
"completedAt": 1701236367890,
"reason": "suborder timeout near end of schedule"
},
{
"twapId": "0xcccccccccccccccccccccccccccccccc",
"status": "canceled",
"asset": "BTC",
"side": "buy",
"totalSz": "0.25",
"filledSz": "0.20",
"remainingSz": "0.05",
"reduceOnly": false,
"slicesFilled": 4,
"slicesPartial": 1,
"slicesRejected": 1,
"totalNotional": "10050.000000",
"avgFillPx": "50250.000000",
"durationMs": 1800000,
"sliceIntervalMs": 300000,
"startedAt": 1701234567890,
"expectedEndAt": 1701236367890,
"currentSliceIndex": 6,
"totalExpectedSlices": 7,
"randomize": true,
"createdAt": 1701234567890,
"updatedAt": 1701236367890,
"reason": "user_request",
"canceledAt": 1701236367890
}
]
}
}
Hyperliquid
Subscription Body
Response
{
"channel": "twapUpdates",
"data": {
"isSnapshot": true,
"user": "0x1111111111111111111111111111111111111111",
"twaps": [
{
"twapId": "0x1a2b3c...",
"status": "active",
"asset": "BTC",
"side": "buy",
"totalSz": "0.25",
"filledSz": "0.10",
"remainingSz": "0.15",
"reduceOnly": false,
"slicesFilled": 2,
"slicesPartial": 0,
"slicesRejected": 0,
"totalNotional": "5030.0",
"avgFillPx": "50300",
"durationMs": 1800000,
"sliceIntervalMs": 300000,
"createdAt": 1701234567890,
"startedAt": 1701234567890,
"expectedEndAt": 1701236367890,
"currentSliceIndex": 2,
"totalExpectedSlices": 7,
"randomize": true,
"updatedAt": 1701235167890
}
]
}
}
{
"channel": "twapUpdates",
"data": {
"isSnapshot": false,
"user": "0x1111111111111111111111111111111111111111",
"twaps": [
{
"twapId": "0x1a2b3c...",
"status": "completed_partial",
"asset": "BTC",
"side": "buy",
"totalSz": "0.25",
"filledSz": "0.20",
"remainingSz": "0.05",
"reduceOnly": false,
"slicesFilled": 4,
"slicesPartial": 1,
"slicesRejected": 1,
"totalNotional": "10050.000000",
"avgFillPx": "50250.000000",
"durationMs": 1800000,
"sliceIntervalMs": 300000,
"startedAt": 1701234567890,
"expectedEndAt": 1701236367890,
"currentSliceIndex": 6,
"totalExpectedSlices": 7,
"randomize": true,
"createdAt": 1701234567890,
"updatedAt": 1701236367890,
"completedAt": 1701236367890,
"reason": "suborder timeout near end of schedule"
},
{
"twapId": "0xcccccccccccccccccccccccccccccccc",
"status": "canceled",
"asset": "BTC",
"side": "buy",
"totalSz": "0.25",
"filledSz": "0.20",
"remainingSz": "0.05",
"reduceOnly": false,
"slicesFilled": 4,
"slicesPartial": 1,
"slicesRejected": 1,
"totalNotional": "10050.000000",
"avgFillPx": "50250.000000",
"durationMs": 1800000,
"sliceIntervalMs": 300000,
"startedAt": 1701234567890,
"expectedEndAt": 1701236367890,
"currentSliceIndex": 6,
"totalExpectedSlices": 7,
"randomize": true,
"createdAt": 1701234567890,
"updatedAt": 1701236367890,
"reason": "user_request",
"canceledAt": 1701236367890
}
]
}
}
Response Fields
Initial snapshot or later update
Show child attributes
Show child attributes
Active TWAPs on subscription; subsequent frames contain the affected TWAP.
Show child attributes
Show child attributes
Schedule state:
"pending", "active", "completed", "completed_partial", "canceled", "expired", "error", or "rejected".Schedule start time in Unix milliseconds;
0 while an assigned HIP-3 TWAP is waiting for its first accepted slice.