get_clob_swap_quote
Get a swap quote from the CLOB exchange, including exchange rate. Specify source token, destination token, and amount in human-readable units.
Instructions
Get a swap quote from the CLOB exchange. Returns quote with exchange rate. Amount is in human-readable units (e.g., '100' for 100 USDT).
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_token": "<from_token>",
"to_token": "<to_token>",
"from_amount": "<from_amount>"
},
"name": "get_clob_swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_token | Yes | Destination token address | |
| from_token | Yes | Source token address | |
| from_amount | Yes | Amount to swap in human-readable units (e.g., '100' for 100 USDT). Will be automatically converted to raw units. | |
| owner_address | No | Optional. Wallet address for the swap. If omitted, uses the configured wallet address. |