{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"2f32f3e2-ac2e-4591-bca8-4004c10676c0","catalogType":"api","categories":["data","finance","crypto-defi"],"dataPlatform":"DefiLlama","dataPlatformLogoUrl":"https://api-docs.defillama.com/icons/favicon-96x96.png","dataPlatformTranslations":{"ar":"DefiLlama","ja":"DefiLlama","zh":"DefiLlama"},"dataProduct":"dex-volumes","description":"Get DefiLlama DEX Protocol Volume data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by DeFiLlama, pass parameters such as excludeTotalDataChart, and retrieve structured data including DEX protocol display name, chains, total24h, total all time, and total data chart to track dex market share, control payload size, and plot historical venue volume.","descriptionTranslations":{"ar":"استعلم عن ملخصات حجم التداول والبيانات التاريخية لبروتوكول منصة لامركزية محددة عبر OpenAny REST لمتابعة النشاط. مرر معرف البروتوكول ومعاملات استبعاد المخطط المطلوبة للحصول على الشبكات وحجم 24 ساعة والإجمالي التاريخي.","ja":"OpenAny REST で単一 DEX プロトコルの出来高サマリーと履歴チャートを取得し、取引動向や流動性回転を追跡できます。プロトコルスラッグとチャート除外フラグを指定すると、対応チェーン、24時間・累計出来高、履歴配列を返します。","zh":"通过 OpenAny REST 查询单个去中心化交易所协议的交易量摘要与历史图表序列，用于追踪平台活跃度与流动性周转。传入协议标识及必填图表排除参数，即可获取支持的区块链列表、24 小时与累计交易量以及可选历史图表数据。"},"effectContentHtml":"","executionMode":"sync","id":"8682b6c3-7237-45de-a8d8-625973356f06","includedContentHtml":"","inputs":[{"description":"protocol slug","location":"path","name":"protocol","nullable":false,"required":true,"type":"string"},{"description":"true to exclude aggregated chart from response","location":"query","name":"excludeTotalDataChart","nullable":false,"required":true,"type":"boolean"},{"description":"true to exclude broken down chart from response","location":"query","name":"excludeTotalDataChartBreakdown","nullable":false,"required":true,"type":"boolean"}],"logoUrl":"https://api-docs.defillama.com/icons/favicon-96x96.png","method":"GET","name":"DefiLlama — Get summary of dex volume with historical data","nameTranslations":{"ar":"DefiLlama — احصل على ملخص لحجم التداول في DEX مع البيانات التاريخية","ja":"DefiLlama — 履歴データを含むDEX取引量の概要を取得","zh":"DefiLlama — 获取包含历史数据的 DEX 交易量摘要"},"overviewHtml":"\u003ch2\u003eDefiLlama DEX Protocol Volume API\u003c/h2\u003e\n\u003cp\u003eProvide a DEX \u003ccode\u003eprotocol\u003c/code\u003e slug (such as \u003ccode\u003euniswap\u003c/code\u003e) and the required boolean query flags \u003ccode\u003eexcludeTotalDataChart\u003c/code\u003e and \u003ccode\u003eexcludeTotalDataChartBreakdown\u003c/code\u003e. The response returns protocol \u003ccode\u003ename\u003c/code\u003e, \u003ccode\u003echains\u003c/code\u003e, \u003ccode\u003etotal24h\u003c/code\u003e, \u003ccode\u003etotalAllTime\u003c/code\u003e and chart arrays when enabled.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003eRequired path: protocol (slug, e.g. uniswap). Required query: excludeTotalDataChart (boolean), excludeTotalDataChartBreakdown (boolean).\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003edefillama · DefiLlama — Get summary of dex volume with historical data\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eSee the pricing area for the selected implementation and request options\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eTrack DEX market share\u003c/strong\u003e: Compare 24h and all-time volume for Uniswap against other protocols from the All DEX Volumes API.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eControl payload size\u003c/strong\u003e: Set excludeTotalDataChart=true when you only need current KPI totals for a lightweight widget.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003ePlot historical venue volume\u003c/strong\u003e: Set excludeTotalDataChart=false to fetch time-series volume bars for research charts.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eReturned Data\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eDEX protocol display name\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003echains\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eArray of blockchains where the DEX volume is tracked\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etotal24h\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eTotal DEX trading volume over the past 24 hours in USD\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etotalAllTime\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eCumulative all-time DEX trading volume in USD\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etotalDataChart\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eHistorical aggregated daily volume chart entries\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003etotalDataChartBreakdown\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eHistorical daily volume breakdown chart entries\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the selected implementation and pricing, then adapt the request below to your target.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl --request GET --get \\\n  https://api.openany.si/v1/agent-apis/defillama/summary/dexs/uniswap \\\n  -H \u0026#34;Authorization: Bearer ${OPENANY_API_KEY}\u0026#34; \\\n  --data-urlencode excludeTotalDataChart=true \\\n  --data-urlencode excludeTotalDataChartBreakdown=true\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response example is a documentation reference and may be abbreviated. The documented request is a calling template; use the published contract and returned response for the selected implementation.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/8682b6c3-7237-45de-a8d8-625973356f06\"\u003ePublished DefiLlama DEX Protocol Volume API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eAre excludeTotalDataChart and excludeTotalDataChartBreakdown required?\u003c/h3\u003e\n\u003cp\u003eYes. Both boolean query parameters are marked required in the live contract.\u003c/p\u003e\n\u003ch3\u003eHow do I include historical chart arrays in the response?\u003c/h3\u003e\n\u003cp\u003ePass excludeTotalDataChart=false and/or excludeTotalDataChartBreakdown=false in the query string.\u003c/p\u003e\n\u003ch3\u003eWhere can I find valid DEX protocol slugs?\u003c/h3\u003e\n\u003cp\u003eQuery the DefiLlama All DEX Volumes API to list tracked DEX protocols and their names.\u003c/p\u003e\n\u003ch3\u003eWhat currency are total24h and totalAllTime reported in?\u003c/h3\u003e\n\u003cp\u003eVolume totals are reported in USD.\u003c/p\u003e\n\u003ch3\u003eDoes this endpoint cover options DEXs?\u003c/h3\u003e\n\u003cp\u003eNo. Use the DefiLlama Options Protocol Volume API for options DEX volume summaries.\u003c/p\u003e\n\u003ch3\u003eHow do I view all DEXs on a specific chain instead?\u003c/h3\u003e\n\u003cp\u003eUse the DefiLlama Chain DEX Volumes API with a chain path parameter.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/defillama/defillama-list-all-dexs-along-with-summaries-of-their-volumes-and-datatype-history-data\"\u003eDefiLlama All DEX Volumes API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/defillama/defillama-list-all-dexs-along-with-summaries-of-their-volumes-and-datatype-history-data-filterin\"\u003eDefiLlama Chain DEX Volumes API\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/defillama/defillama-get-summary-of-protocol-fees-and-revenue-with-historical-data\"\u003eDefiLlama Protocol Fees Summary API\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/defillama/defillama-get-summary-of-dex-volume-with-historical-data?offering=8682b6c3-7237-45de-a8d8-625973356f06","providerId":"defillama","publicPath":"/v1/agent-apis/defillama/summary/dexs/{protocol}","requestContentType":"none","revision":4,"samples":[{"http_status":200,"name":"Official UI example (not runtime verified)","request":{"body":null,"headers":{},"path":{"protocol":"uniswap"},"query":{"excludeTotalDataChart":true,"excludeTotalDataChartBreakdown":true}},"response_body":{"chains":["Ethereum","Polygon"],"name":"Uniswap","total24h":1500000000,"totalAllTime":500000000000,"totalDataChart":[[1640995200,1500000000]],"totalDataChartBreakdown":[[1640995200,{"Uniswap V2":300000000,"Uniswap V3":1200000000}]]}}],"seoDescription":"Get DefiLlama DEX Protocol Volume data via REST or MCP powered by DeFiLlama. Pay per call, no subscription. Get chains and total24h in JSON.","updatedAt":"2026-12-03T02:39:13.075Z","usageInstructionsHtml":""}}