Replace order
replace_orderModify a working order's price, order type, or time in force without affecting other order details. Use to adjust pricing or duration of a pending order.
Instructions
Modify a working order's price, type, or time in force. Only the provided fields change; legs cannot be modified (cancel and re-create instead).
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": {
"account_number": "<account_number>",
"order_id": "<order_id>"
},
"name": "replace_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account_number | Yes | The account number | |
| order_id | Yes | The order id to modify | |
| price | No | New price as a decimal string | |
| price_effect | No | New price effect | |
| order_type | No | New order type | |
| time_in_force | No | New time in force | |
| stop_trigger | No | New stop trigger price |