DEX amounts on matic

Returns 100 DEX trades by token on Polygon, where block time since 2025-10-03, sorted by buy, highest first: currency symbol, currency name, smart contract and sum of trade side amount in USD.

By Aleksey · saved 4 October 2025 · Bitquery API v2

What it returns

Filters

The query

query timeDiagram($network: evm_network, $time_ago: DateTime) {
  EVM(network: $network) {
    DEXTradeByTokens(
      orderBy: {descendingByField: "buy"}
      limit: {count: 100}
      where: {Block: {Time: {since: $time_ago}}}
    ) {
      Trade {
        Currency {
          Symbol
          Name
          SmartContract
        }
      }
      buy: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: buy}}}})
      sell: sum(of: Trade_Side_AmountInUSD, if: {Trade: {Side: {Type: {is: sell}}}})
    }
  }
}

Variables

{
  "network": "matic",
  "time_ago": "2025-10-03T03:04:36Z"
}

Similar queries