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
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 |