Query Parameters
| Field | Type | Need | Description | Example |
|---|---|---|---|---|
”account” | string | required | Account address to filter TWAP orders | 42trU9A5… |
Response
- Status 200: Successfully retrieved open TWAP orders
| Field | Type | Description |
|---|---|---|
”order_id” | integer | TWAP order ID |
”client_order_id” | UUID or null | CLOID of the TWAP order if assigned by user |
”symbol” | string | Trading pair symbol |
”side” | string | Whether the order is a bid or an ask |
”initial_amount” | decimal string | Total amount (in token denomination) of the TWAP order |
”filled_amount” | decimal string | Amount (in token denomination) filled so far |
”reduce_only” | boolean | If each sub-order is reduce only |
”slippage_percent” | decimal string | Maximum slippage for each sub-order, in percent |
”planned_sub_order_amount” | decimal string | Planned amount (in token denomination) of each sub-order, set at creation |
”planned_sub_order_count” | integer | Number of planned sub-orders |
”past_sub_order_count” | integer | Number of planned sub-orders processed so far |
”total_filled_value” | decimal string | Total value (price × amount) filled across all sub-orders. Divide by filled_amount to get the average fill price |
”expiration” | integer | Timestamp in milliseconds when the TWAP order’s time runs out: 30 seconds after the end of duration_in_seconds |
”created_at” | integer | Timestamp in milliseconds when the TWAP order was created on Pacifica |
”updated_at” | integer | Timestamp in milliseconds when the TWAP order was last updated |
- Status 400: Invalid request parameters
- Status 500: Internal server error