Skip to main content
Returns every finished TWAP on the account, as one list of records. Like Get TWAP records, it merges TWAP orders (identity.kind is order) and TWAP order strategies (identity.kind is strategy). Records are sorted by creation time, newest first. Only TWAP orders created through the API are listed.

Query Parameters

FieldTypeNeedDescriptionExample
”account”stringrequiredAccount address to filter TWAPs42trU9A5…
“limit”integeroptionalMaximum number of records to return, default to 100. Values outside 1 to 500 are clamped to that range100
”cursor”stringoptionalThe next_cursor from the previous page. Default to none3vQB7B6M…

Response

  • Status 200: Successfully retrieved TWAP record history
The record fields match Get TWAP records. These fields differ:
FieldTypeDescription
”status”string”completed”: the TWAP finished. For an order, this means the full amount filled
”cancelled”: cancelled, by you or by Pacifica
”expired”: the TWAP ended early or unfilled. For an order, part of the amount was still unfilled when it ran out of planned sub-orders or time. For a strategy, it reached its expiry or scheduled end
”failed”: the TWAP could not continue. For an order, the engine rejected a sub-order
”terminal_reason”string or nullWhy the TWAP stopped, when known, for example “user_cancel”, “boundary_cancel”, “insufficient_balance”, or “rejected”. For an order, “user_cancel” when “cancelled”, “rejected” when “failed”, and null otherwise
”capabilities”array of strings[“timeline”] for a strategy. Empty for an order
  • Status 400: Invalid request parameters or cursor
  • Status 500: Internal server error

Code Example (Python)