Compare swap rates
get_quotesCompare every exchange's offer for a swap, best first.
In each quote, amount_to is what the user receives after all fees. With amount_to given instead of amount, quotes are sorted by amount_from, what the user sends. errors lists the exchanges that can't, and why (with their min/max when the amount is out of range); with no quote at all, limits has the widest min/max: suggest an amount inside it. savings_pct: how much more the best quote gives than the worst. Ask again after refresh_after seconds, not sooner.
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": {
"from_asset": "<from_asset>",
"to_asset": "<to_asset>"
},
"name": "get_quotes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Amount of from_asset to send. Pass this or amount_to. | |
| to_asset | Yes | Asset to receive, as from_asset. | |
| amount_to | No | Exact amount of to_asset to receive, instead of amount (fixed rate only). | |
| providers | No | Only ask these exchanges (ids from list_providers). | |
| rate_type | No | 'float': the market rate when the deposit arrives, usually more. 'fixed': an amount guaranteed for a short time. Default float, or fixed with amount_to. | |
| from_asset | Yes | Asset to send: 'btc', 'usdt:trx', or a ticker with from_network. | |
| to_network | No | Network of to_asset, when its ticker is on several. | |
| from_network | No | Network of from_asset, when its ticker is on several: a code or a name ('trx', 'tron', 'erc20'). |