get_swap_price
Retrieve indicative token swap prices using Aggregator Protocol for DeFi trading. Input chain ID, buy/sell token addresses, and sell amount to facilitate informed transactions.
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) |