get_supported_dexes
Retrieve supported decentralized exchanges (DEXes) for a specific blockchain network to enable trading operations and liquidity analysis.
Instructions
Get list of supported DEXes on a specific network
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | Yes | Network ID (e.g., 'eth', 'bsc', 'polygon_pos') | |
| page | No | Page number for pagination (optional, default: 1) |
Implementation Reference
- Core API call to CoinGecko /networks/{network}/dexes endpoint to fetch supported DEXes list.
async getSupportedDexes(network, page = 1) { try { const queryParams = new URLSearchParams(); if (page) queryParams.append('page', page); const url = `${this.baseUrl}/networks/${network}/dexes${queryParams.toString() ? '?' + queryParams.toString() : ''}`; const response = await fetch(url, { headers: { 'x-cg-demo-api-key': this.apiKey } }); if (!response.ok) { throw new Error(`HTTP ${response.status}: ${response.statusText}`); } return await response.json(); } catch (error) { throw new Error(`Failed to get supported DEXes: ${error.message}`); } }