Skip to main content
The Pacifica Python SDK provides a comprehensive example on using this endpoint.

Request

FieldTypeNeedDescriptionExample
”id”Full UUID stringrequiredClient-defined request ID660065de-8f32-46ad-ba1e-83c93d3e3966
”params”objectrequiredContains action type and action parameters”edit_order"
"edit_order”objectrequiredSpecifies action type and contains parametersSee examples.
”account”stringrequiredUser’s wallet address42trU9A5…
“agent_wallet”stringoptionalAgent wallet address69trU9A5…
“signature”stringrequiredCryptographic signature5j1Vy9Uq…
“timestamp”integerrequiredCurrent timestamp in milliseconds1716200000000
”expiry_window”integeroptionalSignature expiry in milliseconds30000
”symbol”stringrequiredTrading pair symbolBTC
”price”stringrequiredOrder price99500
”amount”stringoptionalOrder amount (if omitted, only the price is changed)0.002
”order_id”integeroptionalSystem-defined order ID (needed if no CLOID provided)645953
”client_order_id”Full UUID stringoptionalClient-defined order ID (needed if no OID provided)f47ac10b-58cc-4372-a567-0e02b2c3d479
”order_expiry”integer or nulloptionalNew expiry in milliseconds since epoch, 5 minutes to 30 days from now. Omit it to keep the current expiry. Send null to remove the expiry. The value, including null, is part of the signed data1716203600000

Response

On error, the frame omits data and instead carries an err (string) field describing the failure, alongside the same id, type, code, t, and rl fields. Notes: Editing an order cancels the original and creates a new one. The new order maintains the same side, reduce-only status, and client_order_id (if provided), is created with TIF = ALO (Post Only), and receives a new system-assigned order_id.

Edit orders are not subject to the taker speedbump. Because the replacement order is always created with TIF = ALO (Post Only), it can never take liquidity, so no delay is applied.