query sales on multiple NFTs

Returns DEX trades on Ethereum, where buy currency smart contract is 0xBC4C…f13D or 0xF5b0…cb8d and block date since 2023-01-01: buy currency name, buy smart contract and sum of trade buy amount.

By Divyasshree N · saved 27 May 2023 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    DEXTrades(
      where: {Trade: {Buy: {Currency: {SmartContract: {in: ["0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D","0xF5b0A3eFB8e8E4c201e2A935F110eAaF3FFEcb8d"]}}}}, Block: {Date: {since: "2023-01-01"}}}
    ) {
      Trade {
        Buy {
          Currency {
            Name
            SmartContract
          }
        }
      }
      sum(of: Trade_Buy_Amount)
    }
  }
}

Similar queries