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