Update Auto-Buy Rule
tronsave_update_auto_buy_settingUpdate an existing TRON auto-buy rule by ID to pause/resume it or change price cap, amount, duration, threshold, and limits; requires wallet signature; get IDs from the list tool.
Instructions
Change an auto-buy rule by id: pause or resume it with isActive, or change any of price cap, amount, duration, threshold and limits (only the fields you send change). Side effect: a resumed or loosened rule can start spending internal TRX again. Idempotent for the same arguments. Get ids from tronsave_list_auto_buy_settings. Requires a wallet signature identity.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Rule id from `tronsave_list_auto_buy_settings`. | |
| isActive | No | false pauses the rule, true resumes it. | |
| receiver | No | TRON base58 address that receives each delegation. | |
| unitPrice | No | Maximum unit price in SUN, as a decimal string. | |
| durationSec | No | Delegation duration of each purchase, in seconds. | |
| endActiveAt | No | Optional Unix time in seconds when the rule stops. | |
| resourceType | No | ENERGY or BANDWIDTH. | |
| startActiveAt | No | Optional Unix time in seconds when the rule starts. | |
| resourceAmount | No | Resource units bought each time the rule fires. | |
| limitBudgetInSun | No | Optional total budget cap in SUN (decimal string); must be greater than 10000000 (10 TRX). | |
| limitInOrderCount | No | Optional cap on the number of orders. | |
| thresholdResourceAmount | No | Rule fires when the receiver's remaining resource drops below this many units (TronSave requires at least 100000). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| data | No | ||
| message | No | ||
| success | No |