getExchangeEstimate
Preview an exchange of the app balance at the current rate; moves nothing.
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": {
"asset_from": "<asset_from>",
"asset_to": "<asset_to>"
},
"name": "getExchangeEstimate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Amount of asset_from to spend (or pass amount_to). | |
| asset_to | Yes | Asset to buy. | |
| amount_to | No | Exact amount of asset_to to receive (instead of amount); amount_from in the answer is what it costs. | |
| asset_from | Yes | Asset to sell. |