get_swap_quote
Get a price quote for swapping tokens, showing expected output, rate, and fees.
Instructions
Get a price quote for swapping between two tokens. Returns expected output amount, rate, and fees.
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": {
"market_id": "<market_id>",
"direction": "<direction>",
"amount_in": "<amount_in>"
},
"name": "get_swap_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount_in | Yes | Amount to swap (human-readable, e.g., '100.5') | |
| direction | Yes | ASK = sell base token, BID = buy base token | |
| market_id | Yes | Market ID (format: baseAddress-quoteAddress) |