dex markets

Returns DEX trades by token on Ethereum, where block time since 2025-01-22: protocol family, protocol name, protocol version, unique of trade buyer, unique of trade sender and count.

By gaurav · saved 22 January 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query DexMarkets($network: evm_network, $time_ago: DateTime) {
  EVM(network: $network) {
    DEXTradeByTokens(where: {Block: {Time: {since: $time_ago}}}) {
      Trade {
        Dex {
          ProtocolFamily
          ProtocolName
          ProtocolVersion
        }
      }
      buyers: uniq(of: Trade_Buyer)
      sellers: uniq(of: Trade_Sender)
      count(if: {Trade: {Side: {Type: {is: buy}}}})
    }
  }
}

Variables

{
  "network": "eth",
  "time_ago": "2025-01-22T16:56:23Z"
}

Similar queries