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
| Field | Type | Need | Description | Example |
|---|---|---|---|---|
”account” | string | required | Account address to filter TWAPs | 42trU9A5… |
“limit” | integer | optional | Maximum number of records to return, default to 100. Values outside 1 to 500 are clamped to that range | 100 |
”cursor” | string | optional | The next_cursor from the previous page. Default to none | 3vQB7B6M… |
Response
- Status 200: Successfully retrieved TWAP record history
| Field | Type | Description |
|---|---|---|
”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 null | Why 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