stock_new_order
Place a new stock order for a specified account, symbol, quantity, price, and buy/sell direction. Supports market/limit orders with configurable order type, condition, and trade date.
Instructions
Place a new stock order.
Args: account_id: Account ID stock_id: Stock symbol (e.g., "2330") quantity: Number of shares price: Order price ("0" for market orders) buy_sell: Buy (1) or Sell (2) trade_date: Trading date in YYYYMMDD format (defaults to today) trade_type: Trade type (default: REGULAR) order_type: Order type (default: CASH) price_type: Price type (default: LIMIT) condition: Order condition (default: ROD) broker: Broker code (default: empty) pay_type: Payment type (default: 0)
Returns: Order confirmation or error message
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | ||
| broker | No | ||
| buy_sell | Yes | ||
| pay_type | No | ||
| quantity | Yes | ||
| stock_id | Yes | ||
| condition | No | ||
| account_id | Yes | ||
| order_type | No | ||
| price_type | No | ||
| trade_date | No | ||
| trade_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 |