get_token_price
Retrieves the current USD price of any token on Uniswap using its symbol or address across multiple chains. The price is derived on-chain from the native token price.
Instructions
Current USD price of a token on Uniswap. Accepts a symbol (e.g. WETH, USDC) or an address. Price is derived on-chain (token's native-denominated price × the native token's USD price); sanity-check a stablecoin should read ~$1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | Chain: ethereum, arbitrum, base, polygon, optimism, or bsc (aliases like eth/arb/matic/bnb are accepted) | |
| token | Yes | Token symbol or 0x address | |
| version | No | Uniswap version: v2, v3, or v4. Omit to use the highest-volume version on that chain. |