swap_quote
Calculate token exchange details including price impact, fees, and minimum output amount with slippage tolerance for informed trading decisions.
Instructions
Get swap quote for token exchange including price impact, fees, and minimum output amount with slippage.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
amount | Yes | Amount to swap (in token decimals) | |
fromMint | Yes | Source token mint address | |
poolAddress | Yes | Pool address for the swap | |
slippage | No | Slippage tolerance (0-100, default 0.5) | |
toMint | Yes | Destination token mint address |
Input Schema (JSON Schema)
{
"properties": {
"amount": {
"description": "Amount to swap (in token decimals)",
"type": "number"
},
"fromMint": {
"description": "Source token mint address",
"type": "string"
},
"poolAddress": {
"description": "Pool address for the swap",
"type": "string"
},
"slippage": {
"default": 0.5,
"description": "Slippage tolerance (0-100, default 0.5)",
"type": "number"
},
"toMint": {
"description": "Destination token mint address",
"type": "string"
}
},
"required": [
"poolAddress",
"fromMint",
"toMint",
"amount"
],
"type": "object"
}