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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"marketAppId": "<marketAppId>",
"escrowAppId": "<escrowAppId>",
"price": "<price>",
"quantity": "<quantity>"
},
"name": "amend_order"
}
}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 |