Amend order
o2c_amend_orderReplace the lines of a DRAFT order. Amendment exists only while the order is draft. After confirmation "what was confirmed" is a fixed fact the credit gate evaluated: the only permitted shrink is o2c_close_short, and growth is a new order. The passed lines replace all existing lines. Effects: order lines replaced.
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>",
"lines": "<lines>"
},
"name": "o2c_amend_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | The new full set of lines. | |
| order_id | Yes | The draft order. An existing order id. |