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
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>",
"quantity": "<quantity>",
"current_quantity": "<current_quantity>",
"matched_quantity": "<matched_quantity>"
},
"name": "futopt_cancel_order"
}
}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 |