All sell buys of an NFT on opensea

Returns 10 DEX trades on Ethereum, where buy currency smart contract is 0x4ebb…b95a, transaction to is 0x0000…14dc and sell currency smart contract is 0x4ebb…b95a: sum of trade buy amount, count, buy currency name, buy protocol name, buy currency symbol, buy fungible, buy smart contract and 6 more fields.

By gaurav · saved 31 May 2023 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    buys: DEXTrades(
      where: {Trade: {Dex: {ProtocolName: {in: "seaport_v1.4"}}, Buy: {Currency: {SmartContract: {is: "0x4ebb2384cc1e86f578e37f2057b336b9027cb95a"}}}}, Transaction: {To: {is: "0x00000000000000adc04c56bf30ac9d3c0aaf14dc"}}}
      limit: {count: 10}
    ) {
      tradeVolbuy: 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
          }
        }
      }
    }
    sells: DEXTrades(
      where: {Trade: {Dex: {ProtocolName: {in: "seaport_v1.4"}}, Sell: {Currency: {SmartContract: {is: "0x4ebb2384cc1e86f578e37f2057b336b9027cb95a"}}}}, Transaction: {To: {is: "0x00000000000000adc04c56bf30ac9d3c0aaf14dc"}}}
      limit: {count: 10}
    ) {
      tradeVolsell: sum(of: Trade_Sell_Amount)
      count
      sellers: count(distinct: Trade_Sell_Seller)
      nfts: count(distinct: Trade_Sell_Ids)
      Trade {
        Sell {
          Currency {
            Name
            ProtocolName
            Symbol
            Fungible
            SmartContract
          }
        }
      }
    }
  }
}

Similar queries