NIke royalty calc

Trade stats of an NFT on opensea

Returns DEX trades on Ethereum, where buy currency smart contract is 0xF661…C692, block date since 2023-05-01 and block date till 2023-05-28: buy currency symbol, buy smart contract, buy price, sell currency symbol, sell smart contract, sum of trade buy amount, sum of trade sell amount and count.

By Divyasshree N · saved 4 July 2023 · run 1 time · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: combined, network: eth) {
    DEXTrades(
     
      where: {Block: {Date: {since: "2023-05-01", till: "2023-05-28"}}, Trade: {Buy: {Currency: {Fungible: false, SmartContract: {in: ["0xF661D58cfE893993b11D53d11148c4650590C692"]}}}, Sell: {Currency: {Fungible: true}}}}
    ) {
      Trade {
        Buy {
          Currency {
            Symbol
            SmartContract
          }
          min_price: Price(minimum: Trade_Buy_Price)
          max_price: Price(maximum: Trade_Buy_Price)
        }
        Sell {
          Currency {
            Symbol
            SmartContract
          }
        }
      }
      buy_amount: sum(of: Trade_Buy_Amount)
      sell_amount: sum(of: Trade_Sell_Amount)
      count
    }
  }
}

Similar queries