amend_order
Edit an existing unfilled order in-place by adjusting price, quantity, or slippage. Collateral updates automatically, avoiding the cost of canceling and recreating the order.
Instructions
Edit an existing unfilled order in-place (change price, quantity, or slippage). Faster and cheaper than cancel + recreate. Only works on orders with zero quantity filled. Collateral is adjusted automatically — extra funds are sent if value increases, refunded if it decreases.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | New price in microunits (e.g. 500000 = $0.50) | |
| quantity | Yes | New quantity in microunits (e.g. 1000000 = 1 share) | |
| slippage | No | New slippage in microunits (default 0) | |
| escrowAppId | Yes | The escrow app ID of the order to amend | |
| marketAppId | Yes | The market app ID |