order_replace
Update a pending order's selectable fields, such as quantity, limit price, stop price, or time in force, and receive the new order ID for confirmation.
Instructions
Replace selected fields on a pending order and return the new order id.
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": "order_replace"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qty | No | ||
| agent | No | mcp | |
| trail | No | ||
| order_id | Yes | ||
| stop_price | No | ||
| limit_price | No | ||
| time_in_force | No | ||
| client_order_id | No | ||
| idempotency_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |