Modify order
modify_orderAdjust a working order's size, stop, limit, or trail price to manage risk or lock in profits. Update existing positions directly without re-entering the trade.
Instructions
Change size or price of a working order (e.g. move a stop to breakeven). trailPrice is an absolute price level; unlike place_order there is no max-distance check, so double-check it.
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": {
"accountId": "<accountId>",
"orderId": "<orderId>"
},
"name": "modify_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | ||
| reason | No | Why; saved to the journal. | |
| orderId | Yes | ||
| accountId | Yes | Trading account ID from list_accounts. | |
| stopPrice | No | ||
| limitPrice | No | ||
| trailPrice | No |