edit_order
Modify an open order's price, size, trigger price, or execution flags directly, avoiding cancellation and re-submission. Use to adjust order parameters while keeping the order active.
Instructions
Modify an existing open order's price, amount, or other parameters without cancelling and re-placing.
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": {
"order_id": "<order_id>"
},
"name": "edit_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | No | New order price | |
| amount | No | New order size in base currency | |
| order_id | Yes | The order ID to edit | |
| contracts | No | New size in number of contracts (preferred for options) | |
| post_only | No | Post-only flag | |
| reduce_only | No | Reduce-only flag | |
| trigger_price | No | New trigger price for stop/take-profit orders |