Parameters
Request type identifier. Set this value to 'twapHistory'
The 42-character hexadecimal address of the user whose TWAP history to retrieve
Returns
Array of historical TWAP order records. The array is empty when the user has no TWAP history.
Creation time of the history record as a Unix timestamp in seconds
Execution state of the TWAP order
Asset symbol for the TWAP order
Notional value executed so far, returned as a decimal string
Order size executed so far, returned as a decimal string
Configured TWAP duration in minutes
Indicates whether execution timing is randomized
Indicates whether the TWAP can only reduce an existing position
Order side: 'B' for bid or buy, and 'A' for ask or sell
Price at which the order stops, or null when no stop price is configured
Original TWAP order size, returned as a decimal string
TWAP start time as a Unix timestamp in milliseconds
Trigger condition for the TWAP, or null when no trigger is configured
Trigger price, returned as a decimal string
When true, activates above the trigger price; when false, activates below it
The 42-character hexadecimal address that placed the TWAP order
Current or final status of the TWAP order
Status value: 'finished', 'activated', 'terminated', 'waitingForTrigger', 'stopped', or 'error'
Error description. Present only when status is 'error'
Optional unique identifier of the TWAP order