Suggest Order Strategy
tronsave_suggest_create_orderPreview how a TRON energy or bandwidth order will fill: compare a new order, add-on buy, or extension of existing delegations, with fill readiness and payout details before ordering.
Instructions
Ask the market how a buy would be filled: a plain new order, buying more only, or extending existing delegations (optionally plus extra). Returns each option with readyToFill (percent), payout (SUN) and the extendData rows. Use before tronsave_create_order when the receiver may already have delegations that can be extended cheaper. Public, read-only. Prices move every ~3 s: re-run right before ordering.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"resourceType": "<resourceType>",
"receiver": "<receiver>",
"resourceAmount": "<resourceAmount>",
"durationSec": "<durationSec>",
"unitPrice": "<unitPrice>"
},
"name": "tronsave_suggest_create_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| receiver | Yes | TRON base58 address that will receive the resource. | |
| requester | No | TRON base58 address that pays; defaults to the logged-in wallet. | |
| unitPrice | Yes | Unit price in SUN you are willing to pay. | |
| durationSec | Yes | Delegation duration in seconds. | |
| resourceType | Yes | ENERGY (smart-contract calls) or BANDWIDTH (plain transfers). | |
| resourceAmount | Yes | Resource units to buy. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| suggestions | No |