Endpoint
Request Body
action
Market and Schedule Rules
- Native perpetuals and supported spot pairs accept TWAPs. Use a spot-pair AssetId rather than a spot-token AssetId; spot TWAPs cannot be reduce-only.
- Assigned HIP-3 TWAPs require an existing active assignment. A TWAP does not allocate a new assignment, and each slice must independently pass admission. Shared-execution HIP-3 markets do not support exposure-increasing TWAPs.
- Read
twapin Market Metadata for the deployment’s duration and slice-interval bounds. Size must align to the market’s lot precision. - TWAP actions do not accept
financing, and slices do not inherit a previous order’s financing authorization.
durationMinutes * 60000 / (numSlices - 1) for multiple slices, or the
whole duration for one slice. It must fall within the advertised interval bounds. Admission also
requires at least 10 USD of estimated notional per slice, including the first slice after lot-size
rounding. Hyperliquid and Polymarket outcome markets do not support TWAPs.
Use the exchange signing flow
with the user or an approved API wallet.
Response
- 200: Pending
- 400: Invalid Schedule
Result
The invalid-schedule example assumes bounds of 5–1440 minutes; use the deployment’s metadata.
Request validation and prechecks return HTTP errors. A rejection during transaction processing
can instead return HTTP
200 with response.data.status: "rejected" and error.
Read TWAP Order Details using the returned
twapOrderId as the query’s twapId, or subscribe to TWAP Updates.