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) |