Actions31
- Market Data Actions
- Account Actions
- Order Actions
- Position Actions
Order → Edit Order
AI-generatedSummary
Edit an existing order by updating its price and amount.
Inputs
- orderSymbol — Trading pair symbol (e.g., BTC). Defaults to 'BTC'.
- amount — Order amount in base asset units. Defaults to '0.001'.
- price — New limit price for the order. Defaults to '0'.
- clientOrderId — Optional client-defined order identifier (UUID). Defaults to empty string.
- orderId — Exchange order ID of the order to edit. Defaults to 0.
Output shape
object
Returns the Pacifica API response for the edit order request, which includes the details of the newly created order (the original order is cancelled and replaced with a new order that retains the original side, reduce-only flag and client order ID).
Examples
Example 1: Edit a BTC limit order to change price and size.
orderSymbol=BTC, amount=0.002, price=25000, orderId=123456