get_swap_price
Retrieve indicative token swap prices using Aggregator Protocol for efficient DeFi trading. Specify chain ID, buy/sell tokens, and sell amount to analyze trade opportunities across multiple blockchains.
Instructions
Get indicative price for a token swap using Aggregator Protocol
Input Schema
Name | Required | Description | Default |
---|---|---|---|
buyToken | Yes | Contract address of token to buy | |
chainId | Yes | Blockchain ID (e.g., 1 for Ethereum) | |
sellAmount | Yes | Amount of sellToken in base units | |
sellToken | Yes | Contract address of token to sell | |
taker | No | Address executing the trade (optional) |
Input Schema (JSON Schema)
{
"properties": {
"buyToken": {
"description": "Contract address of token to buy",
"type": "string"
},
"chainId": {
"description": "Blockchain ID (e.g., 1 for Ethereum)",
"type": "integer"
},
"sellAmount": {
"description": "Amount of sellToken in base units",
"type": "string"
},
"sellToken": {
"description": "Contract address of token to sell",
"type": "string"
},
"taker": {
"description": "Address executing the trade (optional)",
"type": "string"
}
},
"required": [
"chainId",
"buyToken",
"sellToken",
"sellAmount"
],
"type": "object"
}