futopt_modify_order
Modify an existing futures or options order by updating quantity and price. Provide order, account, and contract details to apply changes.
Instructions
Modify an existing futures/options order.
Args: account_id: Account ID order_id: Original order ID order_number: Order number contract_id: Contract ID new_quantity: New quantity current_quantity: Current remaining quantity matched_quantity: Matched quantity new_price: New price product_type: Product type trade_date: Trading date (defaults to today) modify_type: Modification type price_type: Price type condition: Order condition contract_id2: Second leg contract ID pre_order: Pre-order flag
Returns: Modification result
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_id": "<account_id>",
"order_id": "<order_id>",
"order_number": "<order_number>",
"contract_id": "<contract_id>",
"new_quantity": "<new_quantity>",
"current_quantity": "<current_quantity>",
"matched_quantity": "<matched_quantity>",
"new_price": "<new_price>"
},
"name": "futopt_modify_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | ||
| condition | No | ||
| new_price | Yes | ||
| pre_order | No | ||
| account_id | Yes | ||
| price_type | No | ||
| trade_date | No | ||
| contract_id | Yes | ||
| modify_type | No | ||
| contract_id2 | No | ||
| new_quantity | Yes | ||
| order_number | Yes | ||
| product_type | No | ||
| current_quantity | Yes | ||
| matched_quantity | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | No | Response message or error description | |
| success | Yes | Whether the operation succeeded | |
| order_id | No | Order ID if successful |