twapHistory

post
/info

Request twap history of a user.

Body

Request twap history of a user.

typeundefined · enumRequired

Type of request.

Possible values:
userstring · min: 42 · max: 42Required

User address.

Pattern: ^0[xX][0-9a-fA-F]+$
Responses
200

Array of user's TWAP history.

application/json
post
/info
POST /info HTTP/1.1
Host: api.hyperliquid.xyz
Content-Type: application/json
Accept: */*
Content-Length: 36

{
  "type": "twapHistory",
  "user": "text"
}
[
  {
    "time": 1,
    "state": {
      "coin": "text",
      "executedNtl": "text",
      "executedSz": "text",
      "minutes": 1,
      "randomize": true,
      "reduceOnly": true,
      "side": "B",
      "sz": "text",
      "timestamp": 1,
      "user": "text"
    },
    "status": {
      "status": "finished"
    },
    "twapId": 1
  }
]

Last updated