twapOrder
post
/exchange
Place a TWAP order.
Body
Place a TWAP order.
nonceintegerRequired
Unique request identifier (current timestamp in ms).
vaultAddressstring · min: 42 · max: 42OptionalPattern:
Vault address (for vault trading).
^0[xX][0-9a-fA-F]+$expiresAfterintegerOptional
Expiration time of the action.
Responses
200
Response for creating a TWAP order.
application/json
422
Failed to deserialize the JSON body into the target type
text/plain
post
/exchangePOST /exchange HTTP/1.1
Host: api.hyperliquid.xyz
Content-Type: application/json
Accept: */*
Content-Length: 182
{
"action": {
"type": "twapOrder",
"twap": {
"a": 1,
"b": true,
"s": "text",
"r": true,
"m": 1,
"t": true
}
},
"nonce": 1,
"signature": {
"r": "text",
"s": "text",
"v": 27
},
"vaultAddress": "text",
"expiresAfter": 1
}{
"status": "ok",
"response": {
"type": "twapOrder",
"data": {
"status": {
"running": {
"twapId": 1
}
}
}
}
}Last updated