Update Order
tronsave_update_orderUpdate an open TronSave order's price or receiver without canceling and recreating it; verify editable state first, since fulfilled or cancelled orders cannot be changed.
Instructions
Update an open order by orderId with partial fields (receiver, newPrice). Returns { success, message, code }. Side effect: overwrites live order parameters; not idempotent — each call with a different newPrice produces a new state. Requires a wallet signature identity (the order's owner). Prefer this over cancel+recreate when only price/receiver should change. Verify state with tronsave_get_order first; fails for already-fulfilled, already-cancelled, or non-editable orders.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orderId | Yes | Target order id (`MObjectId`) to update. Order must still be open and editable. | |
| newPrice | No | Optional replacement unit price in SUN per resource unit. | |
| receiver | No | Optional replacement receiver TRON address. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | GraphQL mutation status code (HTTP-like; `0`/`200` indicates success). Always pair with `success` for routing. | |
| message | No | Human-readable status text. Populated even on success; localized error messages may appear here on failure. | |
| success | No | Whether the mutation succeeded at the backend level. Always check this before reading `data`. |