Top exchange protocols trading NFT tokens in network

Returns 10 DEX trades on Ethereum, where block date since 2023-05-02 and block date till 2023-05-09, sorted by count, highest first: protocol name, protocol family, protocol version, unique of trade buy currency smart contract, unique of trade sell currency smart contract, unique of trade buy buyer and count.

By Aleksey · saved 9 May 2023 · run 7 times · Bitquery API v2

What it returns

Filters

The query

query($network: evm_network, $limit: Int!, $offset: Int!, 
  $from: String, $till: String) {
  EVM(dataset: combined network: $network){
    DEXTrades(
      orderBy: {descendingByField: "count"}
      limit: {offset: $offset count: $limit}
      where: {
        Block: {Date: {since: $from till: $till }}
        Trade: {
          Buy: {
            Currency: {Fungible: false}
          }
          Sell: {
            Currency: {Fungible: true}
          }
        }
      }
    ){
      Trade {
        Dex {
          ProtocolName
          ProtocolFamily
          ProtocolVersion
        }
      }
      nfts: uniq(of: Trade_Buy_Currency_SmartContract method: approximate)
      currencies: uniq(of: Trade_Sell_Currency_SmartContract method: approximate)
      buyers: uniq(of: Trade_Buy_Buyer method: approximate)
      count
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "offset": 0,
  "from": "2023-05-02",
  "till": "2023-05-09"
}

Similar queries