replace_order
Cancel an existing order and place a new one in a single atomic operation to update trading parameters while maintaining position integrity.
Instructions
Replace an existing order (cancel old and place new) in one atomic operation. Requires authentication.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| subaccount_id | Yes | Subaccount ID | |
| order_id | Yes | Order ID to replace | |
| amount | Yes | New order amount | |
| price | Yes | New order price |