Skip to main content
Returns one row per TWAP order, open or finished, with its latest state. Rows are sorted by order_id, newest first. This history doesn’t include TWAP order strategies. To see both kinds, use Get TWAP record history.

Query Parameters

FieldTypeNeedDescriptionExample
”account”stringrequiredAccount address to filter TWAP orders42trU9A5…
“limit”integeroptionalMaximum number of records to return, default to 100. Values above 4000 are capped at 4000100
”cursor”stringoptionalCursor pagination to access records. Default to none1115hVka

Response

  • Status 200: Successfully retrieved TWAP order history
FieldTypeDescription
”order_id”integerTWAP order ID
”client_order_id”UUID or nullCLOID of the TWAP order if assigned by user
”symbol”stringTrading pair symbol
”side”stringWhether the order is a bid or an ask
”initial_amount”decimal stringTotal amount (in token denomination) of the TWAP order
”filled_amount”decimal stringAmount (in token denomination) filled
”average_price_of_last_filled_sub_order”decimal stringAverage fill price of the latest sub-order that filled
”value_of_last_filled_sub_order”decimal stringFilled value (price × amount) of the latest sub-order that filled
”total_filled_value”decimal stringTotal value (price × amount) filled across all sub-orders. Divide by filled_amount to get the average fill price
”order_status”string”open”: no sub-order processed yet
”in_execution”: sending sub-orders
”completed”: the full amount filled
”cancelled”: cancelled, for example by a cancel request or a liquidation
”expired”: ended with part of the amount unfilled
”rejected_due_to_sub_order”: stopped because the engine rejected a sub-order
”reduce_only”booleanIf each sub-order is reduce only
”slippage_percent”decimal stringMaximum slippage for each sub-order, in percent
”planned_sub_order_amount”decimal stringPlanned amount (in token denomination) of each sub-order, set at creation
”planned_sub_order_count”integerNumber of planned sub-orders
”past_sub_order_count”integerNumber of planned sub-orders processed
”expiration”integerTimestamp in milliseconds when the TWAP order’s time runs out
”created_at”integerTimestamp in milliseconds when the TWAP order was created on Pacifica
”updated_at”integerTimestamp in milliseconds of the TWAP order’s latest event
’next_cursor’stringNext cursor for pagination. Omitted when ‘has_more’ is false
’has_more’booleanTrue if there exists a ‘next_cursor’
  • Status 400: Invalid request parameters
  • Status 500: Internal server error

Code Example (Python)