get_dex_overview
Retrieve summaries of decentralized exchange volumes and historical data to analyze DEX performance and market trends.
Instructions
GET /api/overview/dexs
List all dexs along with summaries of their volumes and dataType history data.
Parameters:
exclude_total_data_chart: true to exclude aggregated chart from response
exclude_total_data_chart_breakdown: true to exclude broken down chart from response
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exclude_total_data_chart | No | ||
| exclude_total_data_chart_breakdown | No |
Implementation Reference
- defillama_server.py:747-764 (handler)The handler function for the 'get_dex_overview' tool, decorated with @mcp.tool(). It makes a GET request to the DefiLlama API endpoint '/api/overview/dexs' with optional parameters to exclude chart data and returns the JSON response as a string. The docstring provides the input schema description.async def get_dex_overview( exclude_total_data_chart: bool = True, exclude_total_data_chart_breakdown: bool = True ) -> str: """GET /api/overview/dexs List all dexs along with summaries of their volumes and dataType history data. Parameters: exclude_total_data_chart: true to exclude aggregated chart from response exclude_total_data_chart_breakdown: true to exclude broken down chart from response """ params = { 'excludeTotalDataChart': str(exclude_total_data_chart).lower(), 'excludeTotalDataChartBreakdown': str(exclude_total_data_chart_breakdown).lower() } result = await make_request('GET', '/api/overview/dexs', params) return str(result)