futopt_new_order
Place new futures or options orders with specified contract, quantity, price, and buy/sell direction. Specify product type and order conditions to get confirmation.
Instructions
Place a new futures or options order.
Args: account_id: Account ID contract_id: Contract ID (e.g., "TXFJ4") quantity: Number of contracts price: Order price ("0" for market orders) buy_sell: Buy (1) or Sell (2) product_type: Product type (0=Futures, 1=Options) trade_date: Trading date (defaults to today) price_type: Price type (default: LIMIT) offset: Offset flag (0=Open, 1=Close) condition: Order condition (default: ROD) contract_id2: Second leg contract ID for complex orders buy_sell2: Second leg buy/sell pre_order: Pre-order flag
Returns: Order 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>",
"contract_id": "<contract_id>",
"quantity": "<quantity>",
"price": "<price>",
"buy_sell": "<buy_sell>"
},
"name": "futopt_new_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | ||
| offset | No | ||
| buy_sell | Yes | ||
| quantity | Yes | ||
| buy_sell2 | No | ||
| condition | No | ||
| pre_order | No | ||
| account_id | Yes | ||
| price_type | No | ||
| trade_date | No | ||
| contract_id | Yes | ||
| contract_id2 | No | ||
| product_type | No |
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 |