dex_search
Search decentralized exchange pairs across all blockchains by token name, symbol, or address. Use for tokens too new or small for CoinGecko to get on-chain prices and most liquid markets.
Instructions
Search DEX pairs across all chains by token name, symbol, or address.
Use this when the token is too new or small for CoinGecko (get_price
returns empty), or when the user wants DEX-side / on-chain prices
specifically. Returns the most-liquid matching pairs first so the top
result is usually the "real" market for the token.
Args: query: Free-text query — token name ("BasedPepe"), ticker ("PEPE"), or contract address. DexScreener returns up to 30 pairs per call. limit: Max pairs to return after sorting by USD liquidity desc (1..30).
Returns:
Array of trimmed pair objects with fields:
chainId, dexId, pairAddress, url, baseToken{address,name,symbol},
quoteToken{...}, priceNative, priceUsd, liquidityUsd, volumeH24,
priceChangeH24, fdv, marketCap, pairCreatedAt.
On API failure returns {"error": "..."} from the HTTP layer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | ||
| limit | No |