Replace Order
replace_orderReplace an existing order by updating quantity, price, trigger price, or trailing stop settings using the original order ID.
Instructions
Replace/modify an existing order
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| order_id | Yes | Order ID to replace (returned by submit_order or listed in today_orders / history_orders) | |
| quantity | Yes | New order quantity (number of shares) | |
| price | No | New limit price (for limit-style orders) | |
| trigger_price | No | New trigger (activation) price (for LIT / MIT / trailing-stop orders) | |
| limit_offset | No | New limit offset from the trailing stop price (for TSLPAMT / TSLPPCT) | |
| trailing_amount | No | New trailing amount as absolute price distance (for TSLPAMT) | |
| trailing_percent | No | New trailing percent as decimal e.g. 0.05 = 5% (for TSLPPCT) |