Skip to main content
Glama

get_dex_volume

Read-onlyIdempotent

chainpeek: Get DEX volume by protocol and chain. For TVL use get_protocol_tvl. Returns DEX volume over 24 hours, 7 days and 30 days with change: a DEX's chains, a chain's largest DEXs, a DEX on a chain, or the market total and the largest DEXs, from Tanod's cache of DefiLlama data. Input: optional protocol, optional chain and limit; give one, both or neither. Cached DefiLlama data (refreshed every few hours), never live; as_of shows its age; chain tables cover the 25 chains with the most volume; an unknown name is a 422 with suggestions and a missing or over-2-day-old cache a 503 (neither charged). Informational only. Typically under 1 s (a local cache read). Price: USD 0.004. Free: 10 chain reads per IP per UTC day. Docs: https://tanod.dev/learn/defi-data-api.html

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_dex_volume"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoChain name among the 25 chains with the most DEX volume, e.g. Solana, Ethereum, Base, BSC. With protocol: that DEX's volume on the chain. Alone: the chain and its largest DEXs.
limitNoRows in a ranking or a breakdown.
protocolNoDEX name or slug, e.g. uniswap, uniswap-v3, curve-dex, pancakeswap-amm (a parent such as uniswap sums its versions). Omit for a chain or the overview.

Output Schema

NameRequiredDescriptionDefault
noteNo
as_ofNo
chainNo
errorNoOnly on an error result: an object {code, message}, or the reason string of an x402 PaymentRequired object.
scopeNo
staleNo
marketNo
reasonNo
sourceNo
protocolNo
other_matchesNo
top_protocolsNo
cache_age_hoursNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed12 schema fields changed
    • removedInput schema / properties / chain / default
      Removed value: -null
    • removedInput schema / properties / chain / title
      Removed value: -"Chain"
    • changedInput schema / properties / limit / description
      Previous value: -"Rows in a ranking or a breakdown, 1-50 (default 10)."New value: +"Rows in a ranking or a breakdown."
    • removedInput schema / properties / limit / title
      Removed value: -"Limit"
    • removedInput schema / properties / protocol / default
      Removed value: -null
    • removedInput schema / properties / protocol / title
      Removed value: -"Protocol"
    • removedInput schema / title
      Removed value: -"get_dex_volumeArguments"
    • removedOutput schema / properties / chain / properties
      Removed value: -{
      -  "as_of": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "change_1d_pct": {
      -    "type": [
      -      "number",
      -      "null"
      -    ]
      -  },
      -  "change_30d_pct": {
      -    "type": [
      -      "number",
      -      "null"
      -    ]
      -  },
      -  "change_7d_pct": {
      -    "type": [
      -      "number",
      -      "null"
      -    ]
      -  },
      -  "name": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "protocol_count": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "volume_24h_usd": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "volume_30d_usd": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "volume_7d_usd": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / market / properties
      Removed value: -{
      -  "change_1d_pct": {
      -    "type": [
      -      "number",
      -      "null"
      -    ]
      -  },
      -  "change_30d_pct": {
      -    "type": [
      -      "number",
      -      "null"
      -    ]
      -  },
      -  "change_7d_pct": {
      -    "type": [
      -      "number",
      -      "null"
      -    ]
      -  },
      -  "protocol_count": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "volume_24h_usd": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "volume_30d_usd": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "volume_7d_usd": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / other_matches / items
      Removed value: -{
      -  "type": [
      -    "string",
      -    "null"
      -  ]
      -}
    • removedOutput schema / properties / protocol / properties
      Removed value: -{
      -  "chain_count": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "chains": {
      -    "items": {
      -      "properties": {
      -        "chain": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "change_1d_pct": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "change_30d_pct": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "change_7d_pct": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "share_pct": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "volume_24h_usd": {
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        },
      -        "volume_30d_usd": {
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        },
      -        "volume_7d_usd": {
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        }
      -      },
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "type": [
      -      "array",
      -      "null"
      -    ]
      -  },
      -  "change_1d_pct": {
      -    "type": [
      -      "number",
      -      "null"
      -    ]
      -  },
      -  "change_30d_pct": {
      -    "type": [
      -      "number",
      -      "null"
      -    ]
      -  },
      -  "change_7d_pct": {
      -    "type": [
      -      "number",
      -      "null"
      -    ]
      -  },
      -  "name": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "share_pct": {
      -    "type": [
      -      "number",
      -      "null"
      -    ]
      -  },
      -  "slug": {
      -    "type": [
      -      "string",
      -      "null"
      -    ]
      -  },
      -  "type": {
      -    "enum": [
      -      "protocol",
      -      "parent",
      -      null
      -    ]
      -  },
      -  "versions": {
      -    "items": {
      -      "properties": {
      -        "change_1d_pct": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "change_30d_pct": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "change_7d_pct": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "name": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "share_pct": {
      -          "type": [
      -            "number",
      -            "null"
      -          ]
      -        },
      -        "slug": {
      -          "type": [
      -            "string",
      -            "null"
      -          ]
      -        },
      -        "volume_24h_usd": {
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        },
      -        "volume_30d_usd": {
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        },
      -        "volume_7d_usd": {
      -          "type": [
      -            "integer",
      -            "null"
      -          ]
      -        }
      -      },
      -      "type": [
      -        "object",
      -        "null"
      -      ]
      -    },
      -    "type": [
      -      "array",
      -      "null"
      -    ]
      -  },
      -  "volume_24h_usd": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "volume_30d_usd": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  },
      -  "volume_7d_usd": {
      -    "type": [
      -      "integer",
      -      "null"
      -    ]
      -  }
      -}
    • removedOutput schema / properties / top_protocols / items
      Removed value: -{
      -  "properties": {
      -    "change_1d_pct": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "change_30d_pct": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "change_7d_pct": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "name": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "share_pct": {
      -      "type": [
      -        "number",
      -        "null"
      -      ]
      -    },
      -    "slug": {
      -      "type": [
      -        "string",
      -        "null"
      -      ]
      -    },
      -    "type": {
      -      "enum": [
      -        "protocol",
      -        "parent",
      -        null
      -      ]
      -    },
      -    "volume_24h_usd": {
      -      "type": [
      -        "integer",
      -        "null"
      -      ]
      -    },
      -    "volume_30d_usd": {
      -      "type": [
      -        "integer",
      -        "null"
      -      ]
      -    },
      -    "volume_7d_usd": {
      -      "type": [
      -        "integer",
      -        "null"
      -      ]
      -    }
      -  },
      -  "type": [
      -    "object",
      -    "null"
      -  ]
      -}
  2. Added

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources