Trade Stats for Deisel

Trade stats of an NFT on opensea

Returns DEX trades on Ethereum, where buy currency smart contract is 0x21AE…e8F4, transaction to is 0x0000…14dc and DEX protocol name is seaport_v1.4, sorted by count, highest first: sum of trade buy amount, count, buy currency name, buy protocol name, buy currency symbol, buy fungible and buy smart contract.

By Nitin Jakhar · saved 28 September 2023 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {Trade: {Dex: {ProtocolName: {in: "seaport_v1.4"}}, Buy: {Currency: {SmartContract: {in: ["0x21AE791a447c7EeC28c40Bba0B297b00D7D0e8F4"]}}}}, Transaction: {To: {is: "0x00000000000000adc04c56bf30ac9d3c0aaf14dc"}}}
      orderBy: {descendingByField: "count"}
     
    ) {
      tradeVol: sum(of: Trade_Buy_Amount)
      count
      buyers: count(distinct: Trade_Buy_Buyer)
      nfts: count(distinct: Trade_Buy_Ids)
      Trade {
        Buy {
          Currency {
            Name
            ProtocolName
            Symbol
            Fungible
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries