futopt_cancel_order
Cancel an existing futures/options order by submitting order details for confirmation.
Instructions
Cancel an existing futures/options order.
Args: account_id: Account ID order_id: Original order ID order_number: Order number contract_id: Contract ID quantity: Order quantity current_quantity: Current remaining quantity matched_quantity: Matched quantity product_type: Product type trade_date: Trading date (defaults to today) contract_id2: Second leg contract ID pre_order: Pre-order flag
Returns: Cancellation confirmation
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | ||
| quantity | Yes | ||
| pre_order | No | ||
| account_id | Yes | ||
| trade_date | No | ||
| contract_id | Yes | ||
| contract_id2 | No | ||
| 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 |