stock_modify_order
Modify an existing stock order to update its price or quantity. Specify order details, new values, and modification type to adjust the trade.
Instructions
Modify an existing stock order.
Args: account_id: Account ID order_id: Original order ID order_number: Order number stock_id: Stock symbol buy_sell: Buy (1) or Sell (2) current_quantity: Current remaining quantity matched_quantity: Matched quantity new_price: New price trade_date: Trading date (defaults to today) new_quantity: New quantity (0 to keep unchanged) trade_type: Trade type order_type: Order type price_type: Price type condition: Order condition modify_type: Modification type (0=Quantity, 2=Price) pre_order: Pre-order flag
Returns: Modification result
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buy_sell | Yes | ||
| order_id | Yes | ||
| stock_id | Yes | ||
| condition | No | ||
| new_price | Yes | ||
| pre_order | No | ||
| account_id | Yes | ||
| order_type | No | ||
| price_type | No | ||
| trade_date | No | ||
| trade_type | No | ||
| modify_type | No | ||
| new_quantity | No | ||
| order_number | Yes | ||
| 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 |