get_token_price
Get live USD price for any ERC-20 token from DEX pools. Accepts ticker or contract address, returns price, pair, liquidity, and confidence, skipping unreliable dust pools.
Instructions
Live USD price of any ERC-20 token, read from DEX pools at call time. Accepts a ticker (CAKE, WETH, ARB) or any contract address. Returns the price, the pair it was priced through, the USD liquidity backing that quote and a confidence rating. Refuses to return a price backed by a dust pool rather than reporting an unreliable number.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain to query. Defaults to bsc. | |
| token | Yes | Ticker (e.g. CAKE) or 0x contract address. |