allTwapStatusUpdates

Stream all twap status updates.

💧New endpoint - this endpoint is not a part of original Hyperliquid API and is added by us for builder convenience.

Subscribe

{ 
    "type": "subscribe",
    "subscription": {
        "type": "allTwapStatusUpdates"
    }
} 

Unsubscribe

{ 
    "type": "unsubscribe",
    "subscription": {
        "type": "allTwapStatusUpdates"
    }
}

Reconnection Note: When reconnecting with a session, replay and live events may overlap. Deduplicate using (time, txIndex) - skip updates where this tuple is at or before your last processed update. See Session Management for details.

allTwapStatusUpdates data format
{
  "type": "allTwapStatusUpdates",
  "seq": 1,
  "cursor": "500:1704067200000:3",
  "updates": [
    {
      "time": "2025-09-03T10:48:14.285201806", // time of update
      "createdAt": 1756896494285, // time of creation
      "twapId": 12345,
      "user": "0x742d35cc6634c0532925a3b844bc9e7595f7f2e2",
      "coin": "ETH",
      "side": "B",

      "status": "activated", // can be activated, finished, terminated or error
      "statusMessage": null, // only non null when status is error

      "sz": "100.5",
      "minutes": 60,
      "reduceOnly": false,
      "randomize": true,

      "executedSz": "25.125",
      "executedNtl": "50250.0",
      "txIndex": 3
    },
    {
      "time": "2025-09-03T10:48:14.285201806",
      "createdAt":1756896494285,
      "twapId": 12346,
      "user": "0x123d35cc6634c0532925a3b844bc9e7595f7f2e2",
      "coin": "BTC",
      "side": "A",

      "status": "error",
      "statusMessage": "Insufficient spot balance",

      "sz": "0.5",
      "minutes": 30,
      "reduceOnly": true,
      "randomize": false,

      "executedSz": "0.1",
      "executedNtl": "4500.0",
      "txIndex": 5
    }
  ]
}

Examples

Last updated