Get a quote
get_quoteAn indicative price for a swap, after every fee, across Float's swap partners and the Float Pool. Read amountOut (what the user receives) and warning when it is set. The quote binds nothing and has no expiry. For direction in, give from and amount of from. For direction out, give to and amount of CC. Minimum: $3 USD equivalent (USDT and USDC amounts are checked here; partner routes can set a higher minimum, and the API then says so). No key needed.
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": {
"amount": "<amount>"
},
"name": "get_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | The asset the user receives, for direction out. A symbol from list_assets, e.g. BTC. | |
| ref | No | Optional referral code, to price the order as it will be attributed. | |
| from | No | The asset the user sends, for direction in. A symbol from list_assets, e.g. USDT. | |
| amount | Yes | Decimal string. For in: amount of from. For out: amount of CC. Never a float. | |
| network | No | Chain of the non-CC asset, when the asset has several. Leave out for the default chain. | |
| rateType | No | float = market rate (recommended, and the default here). fixed = locked rate. | |
| direction | No | in: the user sends an asset and receives CC (Get CC). out: the user sends CC and receives an asset (Withdraw CC). Default in. | |
| destinationExtraId | No | Out only: the payout address's destination tag or memo, when that chain needs one. |