OptionalstopMark price that requests cancellation of the unexecuted remainder after activation. Finite and greater than zero.
OptionaltriggerMark price that delays first execution until the derived trigger condition is met. Finite and greater than zero.
Create-only price conditions for a new TWAP order.
Directions are not sent — the perpetuals HTTP API derives them from the mark price at creation. Omit unused keys; omit the object entirely when both fields are empty (unconditional TWAP).
Mark prices are human-readable numbers, matching stop-order trigger prices and public perpetuals market prices.
Each price must be finite and greater than zero.
NaNandInfinityserialize to JSONnull, which the perpetuals HTTP API reads as "no condition" — an unconditional TWAP rather than an error. Validate before calling.